auth-vir
Version:
Auth made easy and secure via JWT cookies, CSRF tokens, and password hashing helpers.
20 lines (19 loc) • 551 B
TypeScript
/**
* All custom headers used by auth-vir.
*
* @category Internal
*/
export declare enum AuthHeaderName {
AssumedUser = "assumed-user",
/**
* Used to track if the current user is signed in only with a sign-up cookie, which prevents us
* from prematurely wiping their CSRF token.
*/
IsSignUpAuth = "is-sign-up-auth"
}
/**
* Merges multiple header values into a single array of header values.
*
* @category Internal
*/
export declare function mergeHeaderValues(...values: (string | string[] | undefined)[]): string[];