[Solved] Oauth Prompt User after already creating account

As the documentation describes, you can add any number of alternative login types to a User, simply by having them (1) log in with a method they already use and then (2) while logged in, log them in again with the new method.

Done.

That is:

  1. User must be logged in via (for example) their email/password or a social auth they already use.

  2. Present them with an interface for “Add another way to log in”

  3. When they click, for example, “Facebook” – run the log the user in with Facebook action.

  4. Now the user can login using email/pass or Facebook

Repeat for any other methods user would like to log in.

Note: Bubble has a built in “uses email” state for Users. Users do not have a built-in list of what social authorizations they use. So, if you support multiple logins, you may want to manage your own list of those.

(I’m not sure if this is really helpful or useful, but just an idea. What you’d do to maintain this list is just push a value onto some list on the User when the first ‘sign up’ or ‘add’ (which is just signing up, of course) with a certain login method. E.g., step 1 sign up/login with method_X; step 2 make changes to User - field List of Social logins - add method_X)

1 Like