Partial configuration options for authentication sessions.
Partial<Omit<MonoCloudSessionOptionsBase, "store" | "cookie">>| Property | Type | Description |
|---|---|---|
cookie? | Partial<MonoCloudCookieOptions> | Session cookie settings. |
duration? | number | The session lifetime in seconds. With absolute sessions (sliding = false), this defines the total session lifetime. With sliding sessions, this defines the idle timeout before the session expires. |
maximumDuration? | number | The absolute maximum lifetime of a sliding session in seconds. This value limits how long a session can exist even if the user remains continuously active. Only applies when sliding is enabled. |
sliding? | boolean | Enables sliding session expiration. When enabled, the session expiration is extended on active requests, up to the configured maximumDuration. When disabled, the session expires after a fixed duration regardless of user activity. |
store? | MonoCloudSessionStore | A custom session store implementation. When provided, sessions are persisted using this store instead of cookies-only storage. |