Skip to content

PassportMiddleware

@tsed/passport

Usage

typescript
import { PassportMiddleware } from "@tsed/passport";

See /packages/security/passport/src/types/middlewares/PassportMiddleware.ts.

Overview

ts
class PassportMiddleware {
    protocolsService: ProtocolsService;
    shouldSkip(ctx: Context): any;
    use(ctx: Context): Promise<void>;
}

protocolsService

ts
protocolsService: ProtocolsService;

shouldSkip

ts
shouldSkip(ctx: Context): any;

use

ts
use(ctx: Context): Promise<void>;

Released under the MIT License.