This commit is contained in:
2025-11-24 18:39:57 +03:30
parent 9996ea3b09
commit 2de08b9e65
7 changed files with 44 additions and 33 deletions
+3 -3
View File
@@ -22,9 +22,9 @@ import { RefreshToken } from './entities/refresh-token.entity';
useFactory: (configService: ConfigService) => ({
global: true,
secret: configService.getOrThrow<string>('JWT_SECRET'),
signOptions: {
expiresIn: configService.getOrThrow<number>('JWT_EXPIRATION_TIME'),
},
// signOptions: {
// expiresIn: configService.getOrThrow<number>('JWT_EXPIRATION_TIME'),
// },
}),
inject: [ConfigService],
}),