hhchift
03/16/2023, 11:19 AMrp_st
03/16/2023, 11:46 AMrp_st
03/16/2023, 11:46 AMhhchift
03/16/2023, 12:08 PMhhchift
03/16/2023, 12:08 PMawait req.session.mergeIntoAccessTokenPayload({
currAccountId: newAccount,
currEnvId: defaultEnvId,
});
await req.session.fetchAndSetClaim(UserRoleClaim, {
session: req.session,
});
await req.session.fetchAndSetClaim(PermissionClaim, {
session: req.session,
});
rp_st
03/16/2023, 12:15 PMrp_st
03/16/2023, 12:15 PMhhchift
03/16/2023, 12:26 PMhhchift
03/16/2023, 12:27 PMrp_st
03/16/2023, 12:27 PMrp_st
03/16/2023, 12:27 PMhhchift
03/16/2023, 12:32 PMhhchift
03/16/2023, 12:32 PMhhchift
03/16/2023, 12:33 PMrp_st
03/16/2023, 12:33 PMrp_st
03/16/2023, 12:33 PMrp_st
03/16/2023, 12:33 PMhhchift
03/16/2023, 12:34 PMhhchift
03/16/2023, 12:35 PMhhchift
03/16/2023, 12:35 PMrp_st
03/16/2023, 12:36 PMhhchift
03/16/2023, 12:37 PMrp_st
03/16/2023, 12:38 PMreq.session.getAccessTokenPayload()
between each of the session updates you do? What is the output?rp_st
03/16/2023, 12:40 PMhhchift
03/16/2023, 12:42 PM{
currAccountId: '85b00a63-8597-4f1e-850e-d84f6831ad44'
}
-> merge
{
currAccountId: '00fc1383-b743-4c9c-8cd6-a90a3dc811e0'
}
second time:
{
currAccountId: '00fc1383-b743-4c9c-8cd6-a90a3dc811e0'
}
-> merge
{
currAccountId: '00fc1383-b743-4c9c-8cd6-a90a3dc811e0'
}
hhchift
03/16/2023, 12:43 PMhhchift
03/16/2023, 12:43 PMrp_st
03/16/2023, 12:43 PMporcellus
03/16/2023, 12:44 PMUserRoleClaim
and PermissionClaim
didn't appear in there, they should be there if they have a valuehhchift
03/16/2023, 12:44 PMhhchift
03/16/2023, 12:44 PMhhchift
03/16/2023, 12:47 PMhhchift
03/16/2023, 12:47 PMhhchift
03/16/2023, 12:47 PMhhchift
03/16/2023, 12:48 PMporcellus
03/16/2023, 12:49 PMlastRefresh: new Date().toUTCString()
next to the currAccountId
into the access token payload?hhchift
03/16/2023, 12:50 PMporcellus
03/16/2023, 12:50 PMhhchift
03/16/2023, 12:55 PMhhchift
03/16/2023, 12:55 PMhhchift
03/16/2023, 12:55 PMhhchift
03/16/2023, 12:55 PMhhchift
03/16/2023, 12:55 PMrp_st
03/16/2023, 12:57 PMhhchift
03/16/2023, 12:58 PMhhchift
03/16/2023, 12:59 PMhhchift
03/16/2023, 12:59 PMhhchift
03/16/2023, 12:59 PMhhchift
03/16/2023, 1:01 PMporcellus
03/16/2023, 1:06 PMhhchift
03/16/2023, 1:11 PMhhchift
03/16/2023, 1:11 PMhhchift
03/16/2023, 1:11 PMporcellus
03/16/2023, 1:12 PMporcellus
03/16/2023, 1:13 PMhhchift
03/17/2023, 10:02 AMhhchift
03/17/2023, 10:02 AMhhchift
03/17/2023, 10:03 AMporcellus
03/17/2023, 10:03 AMporcellus
03/17/2023, 10:03 AMhhchift
03/21/2023, 9:08 AMhhchift
03/21/2023, 9:09 AMhhchift
03/21/2023, 9:10 AMhhchift
03/21/2023, 9:10 AMhhchift
03/21/2023, 9:13 AMrp_st
03/21/2023, 9:16 AMporcellus
03/21/2023, 9:39 AMporcellus
03/21/2023, 9:40 AMporcellus
03/21/2023, 9:45 AMfront-token
header from the cache
- it would, but the cache is set up by your app (or in this case by the lib your app uses), I'm not sure how well we can control ithhchift
03/21/2023, 11:40 AMrp_st
03/21/2023, 11:41 AMhhchift
03/21/2023, 11:42 AMrp_st
03/21/2023, 11:43 AMhhchift
03/21/2023, 11:47 AMrp_st
03/21/2023, 11:48 AM