@faable/auth-js - v1.7.4
    Preparing search index...

    Interface CookieOptions

    Attribute overrides for the bundled cookie storage adapter.

    Defaults: Path=/, SameSite=Lax, Secure on HTTPS, Max-Age 30 days. Use this to share the session across subdomains or tighten SameSite.

    interface CookieOptions {
        domain?: string;
        maxAge?: number;
        path?: string;
        sameSite?: "Lax" | "Strict" | "None";
        secure?: boolean;
    }
    Index

    Properties

    domain?: string

    (Optional) The domain of the cookie. Use a leading dot to share across subdomains, e.g. .example.com.

    maxAge?: number

    (Optional) The maximum age of the cookie in seconds. Defaults to 30 days.

    path?: string

    (Optional) The path of the cookie. Defaults to /.

    sameSite?: "Lax" | "Strict" | "None"

    (Optional) The same-site attribute of the cookie. Defaults to 'Lax'.

    secure?: boolean

    (Optional) Whether the cookie should only be sent over HTTPS. Defaults to true when the current page is HTTPS.