Skip to content

Commit

Permalink
Pass expiresIn as seconds rather than milliseconds (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
apgrucza authored Jul 16, 2020
1 parent 36bec4c commit 748a756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions authn/pkce.index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ function mainProcess(event, context, callback) {
{
"audience": headers.host[0].value,
"subject": auth.getSubject(decodedData),
"expiresIn": config.SESSION_DURATION,
"expiresIn": parseInt(config.SESSION_DURATION),
"algorithm": "RS256"
} // Options
), {
path: '/',
maxAge: config.SESSION_DURATION
maxAge: parseInt(config.SESSION_DURATION)
})
},
{
Expand Down

0 comments on commit 748a756

Please sign in to comment.