1 | import * as express from "express";
|
2 | import { IAuthConfig } from "./config";
|
3 | export 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 | */
|
12 | export declare function registerAuth(app: express.Application, config: IAuthConfig, params: AuthParams, jwtIgnoreSwaggerUrl?: boolean): Promise<string>;
|