UNPKG

core-api-lib

Version:

Core library with all microservice utilities

12 lines (11 loc) 437 B
import { Request, Response, NextFunction } from "express"; export interface IAuthConfig { PRIVATE_KEY_PATH: string; PUBLIC_KEY_PATH: string; WHITELISTED_URLS: string[]; privateKey?: any; publicKey?: any; } export declare const init: (config: IAuthConfig) => void; export declare const checkJwt: (req: Request, res: Response, next: NextFunction) => void; export declare const generateJwt: (payload: Object) => string;