Set reset token expiry to 15 mins

rer #40
This commit is contained in:
Nicolai Ort 2020-12-22 11:07:01 +01:00
parent 5aad581c2d
commit 48685451be
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export class JwtCreator {
* @param user User entity that the password reset token shall be created for
*/
public static createReset(user: User) {
let expiry_timestamp = Math.floor(Date.now() / 1000) + 10 * 36000;
let expiry_timestamp = Math.floor(Date.now() / 1000) + 15 * 60;
return jsonwebtoken.sign({
id: user.id,
refreshTokenCount: user.refreshTokenCount,