is not empty
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import { Module } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import { JwtModule } from '@nestjs/jwt';
|
||||
import { PassportModule } from '@nestjs/passport';
|
||||
import { AuthController } from './auth.controller';
|
||||
@@ -15,12 +15,10 @@ import { UsuarioModule } from '../usuario/usuario.module';
|
||||
BcryptModule,
|
||||
JwtModule.registerAsync({
|
||||
inject: [ConfigService],
|
||||
useFactory: (configService: ConfigService) => {
|
||||
return {
|
||||
secret: configService.get<string>('AUTH_SECRETKEY'),
|
||||
signOptions: { expiresIn: '2h' },
|
||||
};
|
||||
},
|
||||
useFactory: (configService: ConfigService) => ({
|
||||
secret: configService.get<string>('AUTH_SECRETKEY'),
|
||||
signOptions: { expiresIn: '2h' },
|
||||
}),
|
||||
}),
|
||||
ModuloModule,
|
||||
OperadorModule,
|
||||
|
||||
Reference in New Issue
Block a user