From bbb6a3d1faaee3744b95c32c24280f9348678255 Mon Sep 17 00:00:00 2001 From: Dar Malovani Date: Tue, 27 Aug 2024 13:19:30 +0300 Subject: [PATCH] right change --- backend/models/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/models/User.js b/backend/models/User.js index 6268691..8b74fea 100644 --- a/backend/models/User.js +++ b/backend/models/User.js @@ -57,7 +57,7 @@ UserSchema.methods.generateJWT = function() { var today = new Date(); var exp = new Date(today); - exp.setDate(today.getDate() + 10); + exp.setTime(exp.getTime() + 3600000); return jwt.sign( {