Skip to content

Commit

Permalink
fix: JWT expiration 1min -> 10min
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes authored and gr2m committed May 20, 2019
1 parent 5c40e24 commit 464c57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get-signed-json-web-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function getSignedJsonWebToken ({ id, privateKey }) {
const now = Math.floor(Date.now() / 1000)
const payload = {
iat: now, // Issued at time
exp: now + 60, // JWT expiration time (10 minute maximum)
exp: now + 60 * 10, // JWT expiration time (10 minute maximum)
iss: id
}
const token = jsonwebtoken.sign(payload, privateKey, { algorithm: 'RS256' })
Expand Down

0 comments on commit 464c57e

Please sign in to comment.