auth.provider API
    Preparing search index...
    interface CsrfProtection {
        bodyField: string;
        cookieName: string;
        headerName: string;
        ttlSeconds: number;
        issue(res: Response): string;
        mint(): string;
        verify(req: Request): CsrfTokenVerdict;
    }
    Index
    bodyField: string
    cookieName: string
    headerName: string
    ttlSeconds: number
    • Mint a token and set the paired cookie on res. Returns the token.

      Parameters

      • res: Response

      Returns string