Skip to main content

Verification Code Login (LoginWithVerifyCode)

AndroidiOSPC

If you are using the Unity engine, please refer to LoginWithVerifyCode in the 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​

ParametersTypeDescription
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","","");