Auth0 Home Blog Docs

Social Connection - getting the user profile

Hello,

I’m trying to use a login with Twitter/Google using Auth0 at the moment and I’m having trouble getting the expected response.

I haven’t found a clear indication on how to call the authorization endpoint, so I’ve been using this: https://auth0.com/docs/api/authentication#social

However, the response doesn’t seem to be what I’m looking for.

I am hoping to get the output presented when “trying” the auth on the https://manage.auth0.com/#/connections/social page (as it says “This is the user profile the application will receive:”). Am I missing something?

Edit: furthermore, I want to access the IdP’s api (as described here: https://auth0.com/docs/connections/calling-an-external-idp-api), but the access token I extract from the user (manually, because as mentioned above, I cannot get the “sub” value of a user) doesn’t seem to work - Twitter is returning 89 Invalid/expired token.

Thank you