Skip to content

Commit

Permalink
fix: auth error if immediately request after login
Browse files Browse the repository at this point in the history
  • Loading branch information
arsaizdihar committed May 21, 2024
1 parent bc7cac1 commit d794538
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/controllers/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ const generateJWT = async (payload: object) => {
{
...payload,
exp: now.valueOf() / 1000 + parseInt(env.TOKEN_EXPIRATION),
iat: now.valueOf() / 1000,
nbf: now.valueOf() / 1000,
},
env.JWT_SECRET,
);
Expand Down

0 comments on commit d794538

Please sign in to comment.