Skip to main content

Login with Confirmation Code (LoginWithConfirmCode)

AndroidiOSPC

If you are using Unreal Engine, see LoginWithConfirmCode for the Unreal Engine SDK.

If login or binding fails, use the confirmation code returned by the backend to attempt login again, avoiding prompting the user with the authorization login interface.

Function definition​

public static void LoginWithConfirmCode(int actionType);

Input Parameters​

ParametersTypeExplanation
actionTypeint0: General login
1: Bind channel account to current guest

Callback processing​

The callback handler interface is AuthResultObserver.The callback data structure is AuthResult.

The callback ID is INTL_AUTH_LOGIN_WITH_CONFIRM_CODE.

Code example​

INTLAPI.LoginWithConfirmCode(0); // General login