Missing Custom Claims in Renewed Tokens Using checkSession

Ready to post? :mag: First, try searchin ecently, I implemented a custom action that adds custom claims to both the ID token and access token. These claims are added using both the namespace and non-namespace formats. Additionally, I am using the onContinuePostLogin trigger in my action to manage these claims.

When a user logs in for the first time, I can see the custom claims in the tokens as expected. However, in my React application, when renewing tokens using the auth0.checkSession function, the newly generated tokens do not include the previously added custom claims.

Could you please help me understand why the custom claims are missing in the renewed tokens and guide me on how to ensure the claims are included in all token renewals?

Thank you for your assistance!g for your answer.

api.idToken.setCustomClaim(ns, newOrgArray);
api.accessToken.setCustomClaim(ns, newOrgArray);
api.idToken.setCustomClaim(“employee_id”, newOrgArray);
api.accessToken.setCustomClaim(“employee_id”, newOrgArray);