Auth0 Home Blog Docs

Access Token for Google API



How do I get an access token to use with a Google API using the auth0.webAuth client-side JS library with React? The example app only shows authenticating a user, but not how you might then use the authenticated connection token to call a Google API. I can authenticate using a google-oauth2 connection but the access token that I get back in the parseHash call doesn’t work when I use it with a Google API. If I try to validate it using I get a response telling me that it’s not valid.


This is outlined in the following doc: