Question from a developer:
Here's my proposed login flow - can you let me know if you see any issues with this?
- User signs in on an iOS device using LoginWithIOSDeviceID
- User signs up with AddUsernamePassword (I am going to assign them a password. They will only have to put in an email)
- User loses their device or gets a new one
- User logs into game (this would be a new account with LoginWithIOSDeviceID) and sends a recovery email with SendRecoveryEmail
- I will send them their password
- User uses password in their login with LoginWithEmailAddress
- If successful, they are now on their old account. I will then link their new device id to their old account.
When testing, one thing that came up was that I couldn't unlink one of my test devices. Is this because I am not "logged in" as that user? Also, if I link a device id to one account, will it automatically unlink the device from the last account? Because if it doesn't how does PlayFab know to login a user to which account?