chore: change the token expiration to minutes
This commit is contained in:
@@ -39,7 +39,7 @@ export class TokensService {
|
|||||||
const accessExpire = this.configService.getOrThrow<number>("ACCESS_TOKEN_EXPIRE");
|
const accessExpire = this.configService.getOrThrow<number>("ACCESS_TOKEN_EXPIRE");
|
||||||
const refreshExpire = this.configService.getOrThrow<number>("REFRESH_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();
|
const refreshToken = await this.generateRefreshToken();
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ export class EmailService {
|
|||||||
fullName,
|
fullName,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
console.log(emailInfo);
|
||||||
return emailInfo;
|
return emailInfo;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.logger.error("Email sending failed:", error);
|
this.logger.error("Email sending failed:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user