florian_lefebvre
02/13/2024, 10:41 AMupdateUserMetadata
, this works
3. Then client-side, we try to refresh the metadata and it does not work:
ts
const attemptRefreshingSession = await Session.attemptRefreshingSession();
const sessionExists = await Session.doesSessionExist();
if (sessionExists) {
const user_id = await Session.getUserId();
const accessTokenPayload = await Session.getAccessTokenPayloadSecurely();
accessTokenPayload
contains the same metadata as before. User needs to logout and login again to see the refreshed metadata. What should we do?
json
"supertokens-node": "^13.1.5",
"supertokens-web-js": "^0.5.0",
rp_st
02/13/2024, 1:40 PMflorian_lefebvre
02/13/2024, 2:11 PMrp_st
02/13/2024, 2:14 PMflorian_lefebvre
02/13/2024, 2:19 PMmergeIntoAccessTokenPayload
right?rp_st
02/13/2024, 2:19 PMflorian_lefebvre
02/13/2024, 2:19 PM