@nest-middlewares/passport
TypeScript icon, indicating that this package has built-in type declarations

10.0.0 • Public • Published

Nest Middlewares - Passport

Coverage Status

This is the Nest Middleware wrapper around passport.

Installation

@nest-middlewares/passport is available from NPM. You can install it with this command:

npm install --save @nest-middlewares/passport

Usage

import { Module, NestModule, MiddlewareConsumer } from '@nestjs/common';
import { PassportInitializeMiddleware, PassportSessionMiddleware } from '@nest-middlewares/passport';
import { AppController } from './app.controller';

@Module(...)
export class AppModule implements NestModule {
    configure(consumer: MiddlewaresConsumer) {
        consumer
        	.apply(PassportInitializeMiddleware)
        	.forRoutes(AppController)
        	.apply(PassportSessionMiddleware)
        	.forRoutes(AppController)
    }
}

Package Sidebar

Install

npm i @nest-middlewares/passport

Weekly Downloads

1

Version

10.0.0

License

MIT

Unpacked Size

10.3 kB

Total Files

15

Last publish

Collaborators

  • wbhob