UNPKG

@villedemontreal/jwt-validator

Version:
16 lines 430 B
/** * Extend Express Request object */ import * as express from 'express'; import { IJWTPayload } from '../models/jwtPayload'; export interface IRequestWithJwt extends express.Request { /** * The JSON Web Token of the request. */ jwt: IJWTPayload; } /** * Request with JWT Type Guard */ export declare const isRequestWithJwt: (obj: any) => obj is IRequestWithJwt; //# sourceMappingURL=expressRequest.d.ts.map