I'm setting up a way for users to restore their account using facebook login and wondering the best practices.
We are using frictionless login (android / iOS) for all players.
Players then have an option to link with facebook in settings menu.
If no existing link, then successfully complete. Playfab account is now linked to facebook profile.
If there is an existing linked playfab account, then the player has two options
1) Overwrite existing link
2) Restore data from existing linked playfab account (this will link the current device to the existing linked playfab account). This option should orphan the current playfab account the player is logged in with.
So this way the player can only play on "one" device at a time. If they restore from facebook then it should prevent the other device from logging into that playfab account right?
PhoneA -> frictionless login -> creates AccountA (linked to PhoneA)
PhoneA -> login with fb -> links fb with AccountA
PhoneB -> frictionless login -> creates AccountB (linked to PhoneB)
PhoneB -> login with fb -> restore data from linked AccountA (links accountA with PhoneB as well)
Now accountA is linked to fb + PhoneB
AccountB should be considered orphaned
if PhoneA is used again, then frictionless login will create a NEW playfab account (call it AccountA-1)
Is there better way to do this? Or are the orphan accounts avoidable, etc.
Thanks