MonoCloud Authentication SDK
    Preparing search index...

    Partial configuration options for authentication sessions.

    interface MonoCloudSessionOptions {
        cookie?: Partial<MonoCloudCookieOptions>;
        duration?: number;
        maximumDuration?: number;
        sliding?: boolean;
        store?: MonoCloudSessionStore;
    }

    Hierarchy

    Index

    Properties

    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.

    86400 (1 Day)
    
    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.

    604800 (7 days)
    
    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.

    false
    

    A custom session store implementation.

    When provided, sessions are persisted using this store instead of cookies-only storage.