https://supertokens.com/ logo
s

solminded

05/17/2022, 11:42 PM
Hi again. Quick question, the JWT token we get on clientside by
let jwt = (await SuperTokens.getAccessTokenPayloadSecurely()).jwt
and the token we get from backend method
session.getAccessTokenPayload().jwt
should return the same token right?
n

nkshah2

05/18/2022, 3:05 AM
Hi, Yes they should return the same token
If you’re seeing different tokens being returned after updating the access token payload, make sure to use method 1 when updating it as mentioned here: https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/sessions/update-jwt-payload
7 Views