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 | import { Module } from '@nestjs/common'; import { JwtModule } from '@nestjs/jwt'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { AuthService } from './auth.service'; import { AuthController } from './auth.controller'; import { UserModule } from '../user/user.module'; import { JwtStrategy } from './jwt.strategy'; @Module({ imports: [ JwtModule.registerAsync({ imports: [ConfigModule], useFactory: async (config: ConfigService) => ({ secret: config.get('JWT_SECRET', 'devsecret'), signOptions: { expiresIn: '1d' }, }), inject: [ConfigService], }), UserModule, ], providers: [AuthService, JwtStrategy], controllers: [AuthController], }) export class AuthModule {} |