Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | import { Module } from '@nestjs/common'; import { JwtModule } from '@nestjs/jwt'; import { PassportModule } from '@nestjs/passport'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { AuthService } from './auth.service'; import { AuthController } from './auth.controller'; import { UsersModule } from '../users/users.module'; import { JwtStrategy } from './strategies/jwt.strategy'; import { LocalStrategy } from './strategies/local.strategy'; import { GoogleStrategy } from './strategies/google.strategy'; import { FacebookStrategy } from './strategies/facebook.strategy'; @Module({ imports: [ UsersModule, PassportModule, JwtModule.registerAsync({ imports: [ConfigModule], useFactory: async (configService: ConfigService) => ({ secret: configService.get<string>('jwt.secret'), signOptions: { expiresIn: configService.get<string>('jwt.expiresIn'), }, }), inject: [ConfigService], }), ], controllers: [AuthController], providers: [ AuthService, LocalStrategy, JwtStrategy, GoogleStrategy, FacebookStrategy, ], exports: [AuthService], }) export class AuthModule {} |