Skip to main content

Verification Code Login (LoginWithVerifyCode)

AndroidiOSWindows
If you're using the Unity engine, see the LoginWithVerifyCode for Unity SDK.

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool LoginWithVerifyCode(
const EINTLLoginChannel Channel,
const FString Account,
const FString PassWord,
const FString VerifyCode,
const FString PhoneAreaCode,
const FString PermissionList = "",
const uint8 OnlyLoginType = 0);

Parameter Instructions

ParametersTypeExplanation
ChannelStringChannel for self-built accounts related to platform accounts, such as CustomAccount, EGame.
AccountFStringAccount, supporting email and phone number
PassWordFStringPassword set during registration, should be empty when logging in with a registered account.For more details, see Password Rules.
VerifyCodeFStringVerification code
PhoneAreaCodeFStringPhone area code, e.g., "86" for China. Leave empty if the account is an email.
PermissionListFStringList of permissions.Usually empty for built-in accounts.
OnlyLoginTypeuint80: Supports login and registration
1: Supports login only

Observers

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

The callback ID is kMethodIDAuthLogin.

Code example

UINTLSDKAPI::LoginWithVerifyCode(EINTLLoginChannel::kChannelCustomAccount, "youremail@sample.com", "yourpassword", "12345","","");