Skip to main content

Login with Confirmation Code (LoginWithConfirmCode)

[Player Network SDK and MSDK] When a login or account binding attempt fails, you can retry the login using the confirmation code returned by the backend. This avoids requiring the user to reopen the authorization login interface.The confirmation code is returned by the backend.

Supported platforms

Supports Android, iOS, Windows platform.
note

MSDK does not currently support Windows.

Function Definition

void LoginWithConfirmCode(int actionType = 0, string confirmcode = "", string extraJson = "{}");

Input Parameters

ParametersTypeDescription
actionTypeint0: General login
1: Bind channel account to current guest
confirmcodestringConfirmation code provided by the server
extraJsonstringExtended Fields
For more information, refer to the corresponding channel documentation.

Callback Handling

The callback interface is GUALoginResultObservers.The callback data structure is GUALoginResult.

The callback event is LoginResultEvents. The callback ID is GUA_ACCOUNT_LOGIN_WITH_CONFIRM_CODE.

Code Example

UnionAdapterAPI.GetAccountService().LoginWithConfirmCode();