MonoCloud Authentication SDK
    Preparing search index...

    Options for cookies.

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

    Properties

    domain?: string

    Optional: The domain for which the cookie is valid.

    httpOnly: boolean

    Determines whether the cookie is accessible only through HTTP requests. This setting will be ignored for the state cookie and will always be true.

    true
    
    name: string

    The name of the cookie. For session cookies, the default value is 'session'. For state cookies, the default value is 'state'.

    path: string

    The path for which the cookie is valid.

    '/'
    
    persistent: boolean

    Determines whether the cookie should persist beyond the current session. For session cookies, the default value is true. For state cookies, the default value is false.

    sameSite: SameSiteValues

    The SameSite attribute value for the cookie, ensuring cross-site request forgery protection.

    'lax'
    
    secure: boolean

    Determines whether the cookie should only be sent over HTTPS connections. If not provided, this settings will be auto-detected basis the scheme of the application url.