Skip to main content

LoginWithConfirmCode

AndroidiOSWindows
If you were looking for the method for use with Unity, see LoginWithConfirmCode for Unity SDK.

When the login or linking fails, try to log in again with the confirmation code to prevent the user from opening the login interface again. The confirmation code is returned in the backend.

Function definition

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

Input parameters

ParameterTypeDescription
actionTypeint320: General login
1: Links the channel account to the current guest account.

Observers

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

The callback methodID is kMethodIDAuthLoginWithConfirmCode.

Code sample

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