chore: initial project scaffold: backend/src/auth/auth.module.ts
This commit is contained in:
11
backend/src/auth/auth.module.ts
Normal file
11
backend/src/auth/auth.module.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import { Module } from '@nestjs/common';
|
||||||
|
import { PassportModule } from '@nestjs/passport';
|
||||||
|
import { JwtStrategy } from './jwt.strategy';
|
||||||
|
import { JwtAuthGuard } from './jwt-auth.guard';
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
imports: [PassportModule.register({ defaultStrategy: 'jwt' })],
|
||||||
|
providers: [JwtStrategy, JwtAuthGuard],
|
||||||
|
exports: [JwtAuthGuard],
|
||||||
|
})
|
||||||
|
export class AuthModule {}
|
||||||
Reference in New Issue
Block a user