Token exchange for native social networks with google using the auth0 API

Hi all.
I run into a problem when exchanging the token of some social network for one of auth0.

I am using this endpoint: /oauth /token
https://auth0.com/docs/api/authentication?javascript#token-exchange-for-native-social

And I would like to know in what way the “subject_token_type” is put for a google account since for facebook in the documentation it appeared that this was used:

http://auth0.com/oauth/token-type/facebook-info-session-access-token

You know what I should put in the subject_token_type for google?

Thank you

Good morning @LuisHernandez629 and welcome to the Auth0 Community!

I apologize for the delay in response. Just to confirm the social network you are looking to leverage is Google correct? If not, please let us know. Overall, you shouldn’t need to leverage the "subject_token_type” when using Google as a social connection.

Below we have a helpful Connecting Apps to Google doc that may help shed some light on the process as a whole:
https://auth0.com/docs/connections/social/google

Hello and good morning @James.Morrison.

I was looking and I found the same page that you sent me, but what I managed to solve my problem was to use the Authorize.

https://auth0.com/docs/flows/call-your-api-using-the-authorization-code-flow

1 Like

Fantastic! I’m glad it came together :grinning:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.