@villedemontreal/jwt-validator
Version:
Module to validate JWT (JSON Web Tokens)
16 lines • 430 B
TypeScript
/**
* 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