diff --git a/examples/custom-session-jwt/keystone.ts b/examples/custom-session-jwt/keystone.ts index d9f4ae751e5..da9fb813076 100644 --- a/examples/custom-session-jwt/keystone.ts +++ b/examples/custom-session-jwt/keystone.ts @@ -22,9 +22,6 @@ async function jwtSign(claims: OurJWTClaims) { jwtSessionSecret, { algorithm: 'HS256', // HMAC-SHA256 - - // we use an expiry of 1 hour for this example - expiresIn: '1 hour', }, (err, token) => { if (err) return reject(err); @@ -41,6 +38,7 @@ async function jwtVerify(token: string): Promise { jwtSessionSecret, { algorithms: ['HS256'], + maxAge: '1h', // we use an expiry of 1 hour for this example }, (err, result) => { if (err || typeof result !== 'object') return resolve(null);