I have a question about Login best practice. In my application, I support login using Google, Facebook, and Apple.
I always log in using DeviceID first
PlayFabClientAPI.LoginWithAndroidDeviceID(
new LoginWithAndroidDeviceIDRequest
{
CreateAccount = true,
AndroidDevice = SystemInfo.deviceModel,
OS = SystemInfo.operatingSystem,
AndroidDeviceId = SystemInfo.deviceUniqueIdentifier
},
Let's take Facebook as an example.
Suppose there is Device A. I log in to Device A using DeviceID with PlayFabClientAPI.LoginWithAndroidDeviceID and link it to Facebook using PlayFabClientAPI.LinkFacebookAccount.
Next, on Device B, I log in using DeviceID, and call PlayFabClientAPI.LoginWithFacebook. This way, I can retrieve shared data.
When I call PlayFabClientAPI.LoginWithFacebook on Device B, should I only use Facebook for future logins on Device B?
Can I save the Facebook AccessToken on Device B to automatically log in the user?
What should I do when the AccessToken expires? Should I prompt the user to log in again using Facebook?