cambios
This commit is contained in:
@@ -54,7 +54,6 @@ import { ImagenModule } from './images/images.module';
|
||||
ProyectosAcademicos,
|
||||
TipoUsuario,
|
||||
],
|
||||
synchronize: true,
|
||||
}),
|
||||
}),
|
||||
ServeStaticModule.forRoot({
|
||||
|
||||
@@ -11,16 +11,16 @@ import { User } from 'src/users/entities/user.entity';
|
||||
imports: [
|
||||
UsersModule,
|
||||
JwtModule.registerAsync({
|
||||
inject:[ConfigService],
|
||||
useFactory:async(configService:ConfigService)=>{
|
||||
return{
|
||||
inject: [ConfigService],
|
||||
useFactory: async (configService: ConfigService) => {
|
||||
return {
|
||||
global: true,
|
||||
secret: configService.get('JWT_SECRET'),
|
||||
signOptions: { expiresIn: "7h"},
|
||||
}
|
||||
}
|
||||
signOptions: { expiresIn: '120h' },
|
||||
};
|
||||
},
|
||||
}),
|
||||
TypeOrmModule.forFeature([User])
|
||||
TypeOrmModule.forFeature([User]),
|
||||
],
|
||||
providers: [AuthService],
|
||||
controllers: [AuthController],
|
||||
|
||||
Reference in New Issue
Block a user