This commit is contained in:
2025-11-11 10:35:58 +03:30
parent e34b93aa83
commit 5dd7a6588e
5 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export class TokensService {
const refreshExpire = this.configService.getOrThrow<number>('REFRESH_TOKEN_EXPIRE');
const accessToken = await this.jwtService.signAsync(payload, { expiresIn: `${accessExpire}m` });
const refreshToken = await this.generateRefreshToken();
const refreshToken = this.generateRefreshToken();
await this.storeRefreshToken(payload.id, refreshToken, em);