Google User Authentication

I’m using the Google Authentication plug-in to register/log in users on my app. And everything is working fine (as in I’m able to use my button to go to the Google Consent page and then to pass through googles interface and return back to my app etc.)

The only issue (and I’m not sure if it’s an issue) is that none of the google data is being stored in my data base? Is that just because Google is storing it on their end and I’ll just need to access it with different dynamic data (i.e. via passing the google parameters through?) Or am I doing something wrong?

I thought that when I clicked sign up/log in a user using Google 0Auth. it would register a new user into my data base using the information that is available (email, profile pic, etc.) Can anyone help clarify for me?

Thanks so much,
Jake

Hey @jakemstrauss

So the signup/login with Google action will do only that. You’ll then need to create another action such as “Make changes to current user” where you store the data you want to store to the users’ profile.

Bubble won’t do this automatically as everyone’s user table will be different. So you need to configure what you want to save where

Here’s an example from an app I’m building currently. This is the workflow when the ‘Google button’ is pressed on the login page.

And the ‘Make changes to current user’ action

Screen Shot 2022-05-04 at 9.34.49 am


Josh @ Support Dept
Helping no-code founders get unstuck fast :rocket:save hours, & ship faster with an expert :man_technologist: on-demand

I post daily about no-code and Bubble on Twitter Follow Support Dept on Twitter

1 Like

Amazing, thanks again Josh!

1 Like

Hi, I tried doing this, however when using the “make changes to a user” it just keeps writing over the existing user’s info rather than creating a new one.

That’s right. If you don’t have any additional logic, you’ll just overwrite any existing data in those fields each time they log in. (that’s what you’re telling it to do :grinning:)

You might like to add something into the conditional at the bottom that means this will only trigger the first time they login


Josh @ Support Dept
Helping no-code founders get unstuck fast :rocket:save hours, & ship faster with an expert :man_technologist: on-demand

I post daily about no-code and Bubble on Twitter Follow Support Dept on Twitter