https://supertokens.com/ logo
Title
d

doraig

11/16/2022, 4:03 AM
After upgrading to version 12 of super token node , i am seeing the the new api mergeIntoAccessTokenPayload is not updating the jwt payload unlike the updateAccessTokenPayload did
r

rp

11/16/2022, 4:18 AM
Hey @doraig that function works a little differently compared to updateAccessTokenPayload. It attempts a shallow merge, unlike updateAccessTokenPayload which overwrites entirely
That being said, mergeIntoAccessTokenPayload internally uses updateAccessTokenPayload.
What’s the issue you are facing?
d

doraig

11/16/2022, 5:18 AM
The jwt in the access token does not get updated with the new attributes when using the merge function
r

rp

11/16/2022, 5:19 AM
can you share some code about how you are doing this?
does the access token payload get updated, but the JWT payload doesn't?
or do both don't get updated?
right. I can see the bug. Thanks. Will fix.
hey @doraig thanks for pointing this issue out. We have released the fix for this in node SDK version >= 12.0.6