auth-vir
Version:
Auth made easy and secure via JWT cookies, CSRF tokens, and password hashing helpers.
13 lines (12 loc) • 314 B
TypeScript
/**
* Name of the header attached to responses that stores the CSRF token value.
*
* @category Internal
*/
export declare const csrfTokenHeaderName = "csrf-token";
/**
* Generates a random, cryptographically secure CSRF token.
*
* @category Internal
*/
export declare function generateCsrfToken(): string;