I am new to Auth0 and I’m sure I am missing something obvious but having issues related to getting profile information when calling an API.
My aim is to be able to authenticate with Auth0 (with an Auth0 user or a social provider) then pass the basic profile and email claims in the JWT when sending requests to an API.
When doing the initial authentication (scope: “openid profile email”) I am presented with the profile information I need, however when I call
I need the user profile information on the API being called.
Am I able to do this exchange client side? Enrich the token sent to the API (second code block in the OP) with the information form the User token?
or
Would the best practice be to call the /userinfo endpoint you mentioned directly from the endpoint after it is called?
I guess I am just curious of what your the best practice is for getting claims from the initial first time authentication available on API endpoints being called.