Google OAuth 2.0 - access_token for usage

Hello everyone,

I’m currently working on a project in where I’ve implemented Google OAuth login using the API Connector. The login process is functioning correctly, but I’m facing a challenge in capturing the access_token post-login.

What I want to achieve:

  1. Capture the access_token after a user logs in through Google OAuth.
  2. Store the token in the Bubble’s database, specifically in the user’s profile.
  3. Utilize the token to make API requests to Google services within my application workflows.

Here’s where I’m stuck:

  • After successful login, I’m unable to capture or retrieve the access_token. It seems not to be accessible or visible in the workflow.
  • I need to use this token as a dynamic value in subsequent workflows but can’t seem to find a way to do so.

I’ve attached a screenshot of my API Connector configuration for reference.

Could anyone guide me on how to correctly capture and store the access_token in the user’s profile in and then use it in workflows? Any suggestions or guidance would be greatly appreciated, as I’m somewhat new to handling OAuth and tokens in Bubble.

Thank you in advance for your help!

@mat.lozowicki Welcome to the community!