Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Jan 13, 2024
1 parent 7580122 commit f292b95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ exports.loginUser = (req, res) => {
process.env.SECRET,
{ expiresIn: "1h" });
result.token = token;
result.tokenExpiredAt = Math.round(new Date().getTime()/1000);
result.tokenExpiredAt = Math.round(new Date().getTime()/1000) + 3600;
res.status(200).send(result);
}).catch((err) => {
console.error(err)
Expand Down

0 comments on commit f292b95

Please sign in to comment.