hey @lslunis the roles claims doesn't refresh from the frontend cause we don't have any API exposed on the backend sdk that will refresh the roles (yet).
Therefore, for the frontend, don't add any maxAgeInSeconds for the roles. But you can do this for the backend claim validators for user roles.
l
lslunis
05/04/2023, 6:30 PM
is there a way to refresh manually on the frontend? Our backend doesn't depend on supertokens and just verifes the jwt
lslunis
05/04/2023, 6:31 PM
we have a second backend where we do supertokens work, so I could hit that from the frontend
r
rp_st
05/04/2023, 6:33 PM
yea. You can make an API on the backend which does session verification and runs
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).