UNPKG

@villedemontreal/jwt-validator

Version:
31 lines 939 B
import * as express from 'express'; export interface IUserValidator { /** * TODO commentaire pas à jour * Verify a header containg a jwt and check the jwt with the public key and returns the decoded payload * @param {string} userId * @return {void} */ isUser(userId: string): boolean; /** * TODO commentaire pas à jour * Verify a header containg a jwt and check the jwt with the public key and returns the decoded payload * @param {string} userId * @return {void} */ verifyUser(userId: string): void; } /** * User Validator */ export declare class UserValidator implements IUserValidator { private _request; /** * Create a new instance of UserValidator * @param {express.Request} req */ constructor(req: express.Request); isUser(userId: string): boolean; verifyUser(userId: string): void; } //# sourceMappingURL=userValidator.d.ts.map