UNPKG

612 BTypeScriptView Raw
1import * as express from "express";
2import { IAuthConfig } from "./config";
3export interface AuthParams {
4 /** The base __dirname relative to swagger Swagger outputDirs dirs (in config.swagger.outputDirs) */
5 swaggerBaseDir: string;
6 /** The list of Urls should be ignore by jwt authenticate (for check loggedin links): /web/auth/loggedin, /api/v1/auth/loggedin */
7 jwtIgnoreUrls?: string[];
8}
9/**
10 * Register JWT & Swagger routes
11 */
12export declare function registerAuth(app: express.Application, config: IAuthConfig, params: AuthParams, jwtIgnoreSwaggerUrl?: boolean): Promise<string>;