Link anonymous account with other credentials

Hi,

I have current flow in my game:

  • User logs into the game with anonymous account on device A
  • Makes some progress on device A
  • User logs with platform specific provider (i.e Apple sign in) and links the account.
  • User logs into the game with anonymous account on device B
  • Makes some progress on device B
  • User logs with platform specific provider (i.e Apple Sign In) and tries to link the account.
  • Game displays both players progress and user can pick with what account they want to continue

Based on the API LinkWithAppleAsync method will return exception AuthenticationErrorCodes.AccountAlreadyLinked
Will LinkWithAppleAsync also returns the other credentials to fetch data from cloud save?
Currently I also can’t see Unlink method. Will it be possible to unlink the platform specific authentication, so you can connect it with new account?
What would be the best way to achieve such flow?

Hey Aixa,

Excellent use case, thanks :slight_smile:
I don’t know the answer off the top of my head so I’ll do a little digging to see what’s possible with the current builds.

Hi Aixa -

I’m on the Authentication team, nice to meet you!

I’d like to confirm understanding of the use case you have. How I’m reading it is that the player is playing the game on two different devices:

  • Player updated their first device from Anonymous to Apple ID (say it’s their iPhone).
  • Now on their second device (iPad), they started anonymous and want to link to their Apple ID.
  • User is further along in this iPad version and want this to be their primary account.
  • Alternatively, user was further along on their iPhone and wants to continue progress from their on their iPad.

The feature would be to let the user select which PlayerID to link to their Apple ID.

Not necessarily. In the end, I just want to have the possibility to sign in on both iPhone or IPad with selected PlayerID to fetch correct data from Cloud Save.
There are two ways to handle it.

  • The SignIn will return error CredentialsAlreadyInUse and also credentials already associated with that PlayerID. With that information you user can select right PlayerID. If user selects the account associated with other device (iPhone) We can just reload reload the game and sign in again with selected PlayerID. If user decides to use iPad account and still link with Apple ID then they would need to manually unlink Apple ID from iPhone device.
  • That’s the use case you mentioned - we transfer PlayerID to other Apple ID

Hope that made it more clear :slight_smile:

Thank you - this is super clear! We don’t have a way to support this at the moment, but this is something we do plan to support before GA. We have it tentatively slated for Q1, but I will plan to follow up on this post in the next month or so to confirm the plan.

Hi Aixa- wanted to follow up here. Our latest version, Authentication 1.0.0-pre.37 now supports Account Unlinking along with the following features:

  • Session Token Management
  • Profiles support
  • User Info
  • Account Deletion

We will be publishing our updated documentation this week which will provide more info on these capabilities. Thank you again for providing feedback! As for the second use case, that is something we are still planning to address in Q1.

Hi, @avnishb_unity , I’m also interested in that topic, do you have any updates?

Hey, @avnishb_unity you said about Q1, but it’s already Q3, maybe you have any news on this?