0
votes

I followed the Firebase documentation to implement multiple authentication providers (Google and Facebook), and I am with the problem that I do not know how to solve.

Assuming my new User has Google providers and facebook with different emails is possible to perform the following login flow ?.

  1. User enters the first app and resolves login with your Google account
  2. Firebase create an account and link Google her provider.
  3. The user exits the application.
  4. User again performs login to the app, however this time he chooses the Facebook provider (which has different email Google).
  5. firebase links the Facebook provider the account that is already linked to Google provider.
1

1 Answers

0
votes

The Firebase documentation has a complete page dedicated to account linking. The samples in the page link to a Github repo where you can see the code in the context of an entire app that demonstrates it.

There's little use in use replicating the documentation here. If you're having trouble making a specific step work, share what you've done and the minimal code that shows where you are stuck.