Login with Confirmation Code (LoginWithConfirmCode)
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
| Parameters | Type | Explanation |
|---|---|---|
| actionType | int32 | 0: 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