I’m having a hard time linking the account of an already created user created via invite to Google Oauth.
As the user, ISBAT accept an invite from my teammate and log in to the application via email/password or Google Sign in (or at least eventually link my email/password and google account).
On https://manual.bubble.is/working-with-data/the-user-type.html#using-external-services-to-authenticate there’s a reference to the following:
- If the user is currently logged in with email and password, you can prompt them to link their account with an Oauth provider (such as Facebook, Google…). If a user goes through such a flow, a new user will not be created, but, instead, the Oauth credentials will be added to the current, logged-in user. After this flow completes, the user will be able to login either with his email/password, or via an Oauth flow. If another user exists in the database with the email provided by the external service, the action will fail and a message will be shown to the user.
This may just be a silly question, but how would you have the user go through this flow? Right now I have the following:
- A user is logged in using their email + temp password from their invitation
- Within their account page, there’s a button I created that says “link my google account”
- In the workflow when they click that button, they’re signed in with a social network (Google)
However, once I go to test if the link was created by logging out and then attempting to sign in with Google, I get the error of “email address already in use”.
What am I missing here?
Is it as simple as I can’t create a user with an email/password and them allow them to sync up their Google account if their google account is that same email address?
Thanks! And apologize if this is a n00b question