Is there any way to affect the data in the access token retrived here? const { getAccessTokenSilently } = useAuth0(); Can I somehow indicate that I’d like to add the user’s emai added to that token?
What is otherwise the preferred method for an api to get more information (such as the user’s email) about the calling user?
Yes! I recommend using the Add email to access token rule to add the user’s email address to the access token. Navigate to your Dashboard > Auth0Pipeline > Rules > Create and select the Add email to access token rule.