diff --git a/backend/models/User.js b/backend/models/User.js index 8616f03..8b74fea 100644 --- a/backend/models/User.js +++ b/backend/models/User.js @@ -56,7 +56,8 @@ UserSchema.methods.setPassword = function(password) { UserSchema.methods.generateJWT = function() { var today = new Date(); var exp = new Date(today); - exp.setDate(today.getDate() + 60); + + exp.setTime(exp.getTime() + 3600000); return jwt.sign( {