Reputation: 1512
There are many people who own multiple facebook or twitter accounts. And maybe they would like to merge their accounts in another service
Such as, I have 2 facebook accounts and want to access a game from both account. So if one account got deleted, I can login another to got access to the same
Is it possible in firebase? And how could I do?
Upvotes: 1
Views: 488
Reputation: 2263
Yes, Firebase Auth supports that via the Account Linking API.
User login into Firebase with the first Facebook account.
getCurrentUser() gives you the Firebase user.
Prompt the user to login with second Facebook account.
Link the second Facebook token:
getCurrentUser().linkWithCredential(facebookTokenCredential)
Upvotes: 3
Reputation: 199
For the moment that is not possible. Firebase set an uuid for each facebook account when login for first time.
Upvotes: 1