lslunis
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_st
05/04/2023, 6:28 PMlslunis
05/04/2023, 6:30 PMlslunis
05/04/2023, 6:31 PMrp_st
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 APIlslunis
05/04/2023, 6:35 PMrp_st
05/04/2023, 6:36 PMlslunis
05/04/2023, 6:36 PMrp_st
05/04/2023, 6:36 PM