Beignet API reference
    Preparing search index...

    Interface CsrfTokenOptions

    Double-submit cookie token configuration for createCsrfHooks(...).

    interface CsrfTokenOptions {
        cookieName?: string;
        headerName?: string;
    }
    Index
    cookieName?: string

    Cookie that stores the expected CSRF token.

    Defaults to "beignet.csrf".

    headerName?: string

    Header that must carry the CSRF token.

    Defaults to "x-csrf-token".