Google OAuth Help - Email In Use

Hey there. I could use some help with my Google OAuth workflows.

I have a “Log In With Google” button on my main sign-in page, and a “Sign Up With Google” button on my create-account page. I also allow users the ability to manually create credentials using an email and password.

If a user signs up for my site by manually entering an email and password, then later tries to log-in using the Google OAuth button, they receive the error “This email is already in use” and are not logged in. I want Bubble.io to recognize that the emails are the same and link the OAuth to the already created account, then proceed to log the user into the app. How do I accomplish this?

The user needs to be logged in with their username and password, then connect their Google Account, you can’t do it if the user isn’t already logged in