I am currently able to login with the following providers: Google, Facebook, and Twitter. Also linking two accounts with linkcredentials() seems to be working as intended as well:
Ideally I want following scenario:
- Login Facebook
- Logout Facebook
- Login Google with same e-mail as Facebook
- Automatically account to be linked with Facebook.
OR
- Login Google
- Logout Google
- Login Facebook with same e-mail as Google
- Automatically account to be linked with Google.
The above scenario was founded in offerup website, and I wanted to implement it in the same way. However, this will not work with linkcredentials() as one account will be already linked to the other provider.
I do want to use the Firebase Auth library, but I am not sure in which direction I need to go to make above scenario possible.