Skip to content

Commit

Permalink
Reset token expiry to 30mins.
Browse files Browse the repository at this point in the history
  • Loading branch information
pablisch committed Feb 26, 2024
1 parent 53011f8 commit 8cf6bf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/models/token_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class TokenGenerator {

// Set the JWT token to expire in 30 minutes
exp: Math.floor(Date.now() / 1000) + (30 * 60)
// exp: Math.floor(Date.now() / 1000) + (5) // 5 seconds for testing
}, secret);
}
}
Expand Down

0 comments on commit 8cf6bf1

Please sign in to comment.