Once linked, the same player profile loads regardless of which platform the game is started on, enabling cross-platform progression and cross-saves. Linking can be done via External Linking (redirects to the LootLocker auth.game website; recommended for most cases) or Direct Linking (used when the player is already on the target platform). Also supports transitioning a Guest Login to any other provider.
This endpoint lets you transfer identity providers between two players, provided you have a valid session for both.
The designated identity providers will be transferred FROM the player designated by the FromPlayerWithUlid parameter and TO the player designated by the ToPlayerWithUlid parameter. If any of the providers can not be transferred the whole operation will fail and NO identity providers will be transferred. IMPORTANT: This is a destructive action.Once an identity provider has been transferred they will allow authentication for the target player and no longer authenticate for the source player. This can leave the source player without means of authentication and thus unusable from the game.
** Limitations**
- You can not move an identity provider that the source player does not have
- You can not move an identity provider to a player that already has an account from said identity provider associated with their account.
- You can not move an identity provider which isn't active in your game settings.
NOTE: This method requires LootLockerMultiUserSessionMode.Hotseat to be configured (via LootLockerConfig.multiUserSessionMode), because it needs two simultaneously active local sessions. It will return an error if the current mode is LootLockerMultiUserSessionMode.SingleSession or LootLockerMultiUserSessionMode.ProfileSwitching.
- Parameters
-
| FromPlayerWithUlid | The ULID of an authenticated player that you wish to move identity providers FROM |
| ToPlayerWithUlid | The ULID of an authenticated player that you wish to move identity providers TO |
| ProvidersToTransfer | Which identity providers you wish to transfer |
| onComplete | onComplete Action for handling the response |
|
| static void | LootLocker.Requests.LootLockerSDKManager.ListConnectedAccounts (Action< LootLockerListConnectedAccountsResponse > onComplete, string forPlayerWithUlid=null) |
| | List identity providers (like Apple, Google, etc.) that are connected to the currently logged in account.
|
| |
| static void | LootLocker.Requests.LootLockerSDKManager.DisconnectAccount (LootLockerAccountProvider accountToDisconnect, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
| | Disconnect account from the currently logged in account.
|
| |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectGoogleAccount (string idToken, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
| | Connect a Google Account to the currently logged in LootLocker account allowing that google account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Google account is linked into.
|
| |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectGoogleAccount (string idToken, GoogleAccountProviderPlatform platform, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
| | Connect a Google Account (with a Google Platform specified) to the currently logged in LootLocker account allowing that google account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Google account is linked into.
|
| |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectAppleAccountByRestSignIn (string authorizationCode, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
| | Connect an Apple Account (authorized by Rest Sign In) to the currently logged in LootLocker account allowing that google account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Apple account is linked into.
|
| |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectTwitchAccount (string authorizationCode, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
| | Connect a Twitch Account to the currently logged in LootLocker account allowing that Twitch account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Twitch account is linked into.
|
| |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectEpicAccount (string Token, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
| | Connect an Epic Account to the currently logged in LootLocker account allowing that Epic account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Epic account is linked into.
|
| |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectPlaystationAccount (string environment, string code, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
| | Connect a Playstation Account to the currently logged in LootLocker account allowing that Playstation account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Playstation account is linked into.
|
| |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectDiscordAccount (string token, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
| | Connect an Discord Account to the currently logged in LootLocker account allowing that Discord account to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Discord account is linked into.
|
| |
| static void | LootLocker.Requests.LootLockerSDKManager.ConnectRemoteSessionAccount (string Code, string Nonce, Action< LootLockerAccountConnectedResponse > onComplete, string forPlayerWithUlid=null) |
| | Connect an identity provider (authorized using a remote link session) to the currently logged in LootLocker account allowing that authentication method to start sessions for this player IMPORTANT: If you are using multiple users, be very sure to pass in the correct forPlayerWithUlid parameter as that will be the account that the Remote Session account is linked into.
|
| |
| static void | LootLocker.Requests.LootLockerSDKManager.TransferIdentityProvidersBetweenAccounts (string FromPlayerWithUlid, string ToPlayerWithUlid, List< LootLockerAccountProvider > ProvidersToTransfer, Action< LootLockerListConnectedAccountsResponse > onComplete) |
| | This endpoint lets you transfer identity providers between two players, provided you have a valid session for both.
|
| |