chore: change the token expiration to minutes

This commit is contained in:
mahyargdz
2025-07-03 18:29:21 +03:30
parent ef0f7b3eb5
commit 633b23cf73
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ export class TokensService {
const accessExpire = this.configService.getOrThrow<number>("ACCESS_TOKEN_EXPIRE");
const refreshExpire = this.configService.getOrThrow<number>("REFRESH_TOKEN_EXPIRE");
const accessToken = this.jwtService.sign(payload, { expiresIn: `${accessExpire}h` });
const accessToken = this.jwtService.sign(payload, { expiresIn: `${accessExpire}m` });
const refreshToken = await this.generateRefreshToken();
@@ -31,6 +31,7 @@ export class EmailService {
fullName,
},
});
console.log(emailInfo);
return emailInfo;
} catch (error) {
this.logger.error("Email sending failed:", error);