Skip to main content

Login with Confirmation Code (LoginWithConfirmCode)

AndroidiOSWindows
If you're using Unreal Engine, see the LoginWithConfirmCode for 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