UNPKG

typescript-rest-jwt

Version:

JWT authentication for typescript-rest via decorators.

14 lines (13 loc) 516 B
/// <reference types="express-jwt" /> /// <reference types="express" /> import { Application } from 'express'; import * as expressJWT from 'express-jwt'; export interface ICache { [key: string]: any; } export declare class AuthHandler { private static cache; static addPath(path: string, target: ICache, propertyKey?: string): void; static readonly createDefaultJWTOptions: (secret: string) => expressJWT.Options; static configure(app: Application, options: string | expressJWT.Options): void; }