fix(core): Decrease reset password token expire time (#7598)

Decrease the expiration time from 1 day to 20 minutes

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Tomi Turtiainen
2023-11-03 13:32:08 +02:00
committed by GitHub
parent b532a7bdb7
commit 2aa7f6375a
2 changed files with 2 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ export class PasswordResetController {
const resetPasswordToken = this.jwtService.signData(
{ sub: id },
{
expiresIn: '1d',
expiresIn: '20m',
},
);