https://supertokens.com/ logo
Title
m

monsterdonio

01/04/2023, 9:24 PM
Hey team! Is it possible to alter the default value of the
exp
field in the JWT? I'm trying to update it via the
createNewSession
override as mentioned in the docs https://supertokens.com/docs/passwordless/common-customizations/sessions/with-jwt/custom-claims but it doesn't seem to be changing the value in the generated token. Are we not able to change the claims that supertokens adds by default: sub, iss, exp, iat?
r

rp

01/05/2023, 4:00 AM
Hey @monsterdonio
The expiry of the JWT is tied to the session recipe’s access token expiry.
So you should change the access token’s expiry as shown in this doc: https://supertokens.com/docs/passwordless/common-customizations/sessions/change-session-timeout