Auth0 Home Blog Docs

tokenInfo api is not working

id_token

#1

I am using tokeninfo api but i found that it is disabled in new version. So there is any way to get json of token using id_token. I dont want to use access token.


#2

As the /tokeninfo is being deprecated the recommendation would be for you to call the /userinfo endpoint instead. I know you stated you do not want to use an access token, however /userinfo endpoint requires a suitable access token instead of the ID token that you were sending to /tokeninfo. The userinfo migration is to align with the OIDC specification. Could you explain your use case and why using /userinfo endpoint with an access token won’t work for you?


#3

I want to get the usermetadata field also but /userinfo will give only few information.


#4

We should be able to populate /userinfo using the custom claims Rule, as shown here: https://auth0.com/docs/api-auth/tutorials/adoption/scope-custom-claims#custom-claims so that we can include the user_metadata. It’s a little bit extra work since in the sense that it’s not automatically included, but we can include any custom information using Rules. Let me know if this works for you.