I have been trying to get a user email on the token after a user login. (https://dev-p.eu.auth0.com/authorize?response_type=token&client_id=someId&redirect_uri=http://localhost:3000/callback&scope=openid%20profile%20email&audience=some-api).
So the conclusions I have come to is that the token returned from this must be an access token, and id tokens are not available?
And also the reason i can’t get the user email is because access tokens don’t provide anything other than authorization claims?
Hey there @gavinross88 welcome to the community!
The response_type=token
will indeed only return an access token - In order to get request an ID token as well you will need to include id_token
as well, response_type= token id_token
. Please see:
Hope this helps!
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.