auth.provider API
    Preparing search index...

    Interface CsrfProtectionOptions

    interface CsrfProtectionOptions {
        bodyField?: string;
        cookie?: CsrfCookieAttributes;
        cookieName?: string;
        headerName?: string;
        now?: () => number;
        secret: string;
        ttlSeconds?: number;
    }
    Index
    bodyField?: string
    cookieName?: string
    headerName?: string
    now?: () => number

    Clock seam for tests.

    secret: string

    Secret the signing key is derived from. Pass session.secret; the key itself is an HKDF expansion of it, never the secret.

    ttlSeconds?: number