Thank you for posting your question, I’ve checked your action code in my tenant, and it correctly added claims to the ID Token and access token. Could you check if your application is passing the audience in the request? I’m guessing that you could be getting an opaque token, not a valid JWT → Why Access Token Is Not a JWT (Opaque Token). You can also use Auth0 CLI with auth0 test token command to check the access token.
We managed get custom claims but we faced with additional problem:
We have a regular Login flow with Select Organization.
User click on login then we have default Auth0 popup screen user enter user/pass and moved to selected organizations on default Auth0 select
After select organization moved to callback function getToken and proceed. All working good BUT:
ISSUE: After initial login we don’t see on an access token the org_id.
But if user make switch organization by example below and pass in authorizationParams organizationId then access token include the org_id but after initial login auth0Client!.loginWithRedirect() and default select organization flow by autQuesionh0 the access token not include org_id.
Q: What are we missing? Is it the correct process?