Skip to main content

Login with Confirmation Code (LoginWithConfirmCode)

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

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool LoginWithConfirmCode(const int32 actionType);

Input Parameters

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

Callback processing

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

Callback ID is kMethodIDAuthLoginWithConfirmCode.

Code example

UINTLSDKAPI::LoginWithConfirmCode(0); //General login