@villedemontreal/jwt-validator
Version:
Module to validate JWT (JSON Web Tokens)
12 lines • 516 B
TypeScript
import { IApiError, IApiErrorAndInfo } from '@villedemontreal/general-utils';
/**
* Easily creates an "InvalidJWT" error (401). To throw when
* the user has a bad/expired JWT
*/
export declare function createInvalidJwtError(detail: IApiError): IApiErrorAndInfo;
/**
* Easily creates an "invalidAuthHedaer" error (401). To throw when
* the user has a bad authorization header
*/
export declare function createInvalidAuthHeaderError(detail: IApiError): IApiErrorAndInfo;
//# sourceMappingURL=customError.d.ts.map