UNPKG

@villedemontreal/jwt-validator

Version:
57 lines 1.56 kB
/** * Library constants */ export declare class Constants { /** * The library root. When this library is used * as a dependency in a project, the "libRoot" * will be the path to the dependency folder, * inside the "node_modules". */ libRoot: string; /** * The app root. When this library is used * as a dependency in a project, the "appRoot" * will be the path to the root project! */ appRoot: string; constructor(); /** * Errors related constants */ get errors(): { codes: { INVALID_HEADER: string; ACCOUNT_ALREADY_EXISTS: string; ACCOUNT_NOT_FOUND: string; ACCOUNT_ALREADY_VERIFIED: string; INVALID_AUTHORIZATION_HEADER: string; INVALID_JWT: string; CODE_NOT_FOUND: string; CODE_EXPIRED: string; PHONE_NOT_FOUND: string; UNABLE_TO_GET_PUBLIC_KEY: string; NULL_VALUE: string; INVALID_VALUE: string; INVALID_EMAIL_VALUE: string; UNAUTHORIZED_ACCESS: string; TEST_REMAINING: string; }; }; /** * Extra values that we can add to the original Express request. */ get requestExtraVariables(): { JWT: string; }; /** * Default values */ get default(): { endpoint: string; fetchKeysParameters: string; cacheDuration: number; }; } export declare const constants: Constants; //# sourceMappingURL=constants.d.ts.map