Question

OAuth2 auth_code not being populated

  • 30 November 2022
  • 2 replies
  • 30 views

I’m unable to create a successful OAuth2 login with Google.

I switched to Code mode and log the response from the request to get access_token from auth code. 

I can see the access_token here when i look at the console log via z.console.log

When I inspect the Bundle via the z.console.log I see some :censored: value

The final step in my connection is to call https://www.googleapis.com/userinfo/v2/me with the Bearer token set as access_token

 

However it is just erroring out saying im not passing the access_code

 

 Using bundle.authData.access_token does not work

 

But when I take the access_token from the console log and place it here - it works 

 

What’s up with bundle.authData.access_token?


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Weird - it looks like it works now.

Wonder if a bug got fixed?

Userlevel 4
Badge +9

Hi @Sebastian Patten 👋

bundle.authData is the correct field prefix to use: https://platform.zapier.com/cli_docs/docs#bundleauthdata 

As far as I’m aware, there was no open bug for this, so I’m not sure why you were running into trouble before 🤔 Glad to hear it is working as expected for you now!