lunis
05/04/2023, 6:20 PM{reason: {message: 'expired', ageInSeconds: 7358.774, maxAgeInSeconds: 60},validatorId: "st-role"}
. It seems to be what was described in https://community.supertokens.com/t/2912951/hello-im-following-the-new-docs-on-how-to-implement-role-bas , but I'm on a recent version of the SDKs. Is there something else I need to do to cause expired claims to be refreshed?rp
05/04/2023, 6:28 PMlunis
05/04/2023, 6:30 PMrp
05/04/2023, 6:33 PMsession.fetchAndSetClaim(UserRoleClaim)
and then returns a success response.
Then on the frontend, you can create your own claim similar to https://github.com/supertokens/supertokens-web-js/blob/master/lib/ts/recipe/userroles/userRoleClaim.ts#L17, and in the refresh function, just call your APIlunis
05/04/2023, 6:35 PMrp
05/04/2023, 6:36 PMlunis
05/04/2023, 6:36 PMrp
05/04/2023, 6:36 PM