@villedemontreal/jwt-validator
Version:
Module to validate JWT (JSON Web Tokens)
8 lines • 383 B
TypeScript
import * as express from 'express';
/**
* JWT validation Middleware
*
* @param {boolean} mandatoryValidation Defines if the JWT is mandatory. Defaults to true.
*/
export declare const jwtValidationMiddleware: (mandatoryValidation?: boolean) => (req: express.Request, res: express.Response, next: express.NextFunction) => Promise<void>;
//# sourceMappingURL=jwtMiddleware.d.ts.map