Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature req: connecting social oauth profiles #563

Open
0xgeert opened this issue Jun 5, 2016 · 2 comments
Open

feature req: connecting social oauth profiles #563

0xgeert opened this issue Jun 5, 2016 · 2 comments

Comments

@0xgeert
Copy link

0xgeert commented Jun 5, 2016

Would be very useful to enable a user to connect multiple social oauth profiles to one account.
Is this on the roadmap?

@deontologician
Copy link
Contributor

I know the metadata supports multiple auth methods per user, but I don't know how we can actually do it. I'm pretty sure doing OAuth creates a branch new user. @Tryneus how should this work?

@marshall007
Copy link
Contributor

Firebase allows you to "link" multiple auth providers to a account (see docs). Once the user is already signed in to one of their accounts you can then link others by doing:

firebase.auth.currentUser.link(<firebase.auth.AuthCredential>).then(function(user) {
  console.log("Account linking success", user);
});

I think the existing behavior of the OAuth flow always creating a new user by default should remain. I like how linking additional providers is all part of their client API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants