From 748a7568fb837f74023b6daae37b6ef544f45aea Mon Sep 17 00:00:00 2001 From: Adrian Grucza <46910040+apgrucza@users.noreply.github.com> Date: Thu, 16 Jul 2020 14:54:38 +1000 Subject: [PATCH] Pass expiresIn as seconds rather than milliseconds (#9) --- authn/pkce.index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authn/pkce.index.js b/authn/pkce.index.js index edbbee6..4983bdd 100755 --- a/authn/pkce.index.js +++ b/authn/pkce.index.js @@ -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) }) }, {