question

brendan avatar image
brendan asked

Checking if a player already has a recoverable account linked

Question from a developer:

We will be using frictionless authentication for a mobile game using the suggested workflow via LoginWithAndroidDeviceID / LoginWithIOSDeviceID, coupled with LoginWithPlayFab.

How can we best determine if the player has already linked a recoverable account type on login? We only want to prompt the user to link a recoverable account if they haven't already. Would it be best to check the Username via GetAccountInfo request?

Account Management
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Yes, on login you can use GetAccountInfo to retrieve all the information for the current user, including all linked account types. In the case of an account where you used AddUsernamePassword to enable LoginWithPlayFab, just check that the Username is non-null. For other account types, like Facebook, you can check for the ID for the given service.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.