MonoCloud Authentication SDK
    Preparing search index...

    Interface MonoCloudCookieOptions

    Configuration options for authentication cookies.

    These settings control how MonoCloud session and state cookies are created, scoped, and transmitted by the browser.

    interface MonoCloudCookieOptions {
        domain?: string;
        httpOnly: boolean;
        name: string;
        path: string;
        persistent: boolean;
        sameSite: SameSiteValues;
        secure: boolean;
    }
    Index
    domain?: string

    Optional domain scope for the cookie.

    httpOnly: boolean

    Indicates whether the cookie is accessible only via HTTP requests. Helps mitigate XSS attacks by preventing client-side JavaScript access.

    Always enforced as true for state cookies.

    true
    
    name: string

    The cookie name. Defaults to "session" for session cookies and "state" for state cookies.

    path: string

    The URL path for which the cookie is valid.

    '/'
    
    persistent: boolean

    Determines whether the cookie persists across browser restarts.

    true
    
    sameSite: SameSiteValues

    The SameSite policy applied to the cookie. Controls cross-site request behavior and CSRF protection.

    'lax'
    
    secure: boolean

    Indicates whether the cookie should only be transmitted over HTTPS.

    If not explicitly provided, this value is automatically inferred from the application URL scheme.