Add custom claims to access token without a namespace

Problem statement

How can we add custom claims to the access token without a namespace?

Solution

“Auth0 will restrict the creation of private, non-namespaced custom claims on access tokens in which the audience is an Auth0 API.”

https://auth0.com/docs/troubleshoot/product-lifecycle/deprecations-and-migrations/custom-claims-migration#restricted-token-audience

Therefore, if you are using one of our default audiences, you will have to utilize the namespace claims.