Thaina Yu
Thaina Yu

Reputation: 1512

Can we merge an account of many users in the same service into one firebase account

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

Answers (2)

Jin Liu
Jin Liu

Reputation: 2263

Yes, Firebase Auth supports that via the Account Linking API.

  1. User login into Firebase with the first Facebook account.

  2. getCurrentUser() gives you the Firebase user.

  3. Prompt the user to login with second Facebook account.

  4. Link the second Facebook token:

getCurrentUser().linkWithCredential(facebookTokenCredential)

Upvotes: 3

ayoseturru
ayoseturru

Reputation: 199

For the moment that is not possible. Firebase set an uuid for each facebook account when login for first time.

Upvotes: 1

Related Questions