UNPKG

@thermopylae/core.cookie-session

Version:
14 lines (13 loc) 620 B
import { Exception } from '@thermopylae/lib.exception'; declare const enum ErrorCodes { CSRF_HEADER_INVALID_VALUE = "CSRF_HEADER_INVALID_VALUE", SESSION_COOKIE_NAME_INVALID_FORMAT = "SESSION_COOKIE_NAME_INVALID_FORMAT", SESSION_COOKIE_NAME_MUST_BE_LOWERCASE = "SESSION_COOKIE_NAME_MUST_BE_LOWERCASE", SESSION_ID_HEADER_NAME_MUST_BE_LOWERCASE = "SESSION_ID_HEADER_NAME_MUST_BE_LOWERCASE", CSRF_HEADER_NAME_MUST_BE_LOWERCASE = "CSRF_HEADER_NAME_MUST_BE_LOWERCASE" } /** * @private */ declare function createException(code: string, message: string): Exception; export { createException, ErrorCodes };