Skip to main content

Verification Code Login (LoginWithVerifyCode)

AndroidiOSWindows
If you're using Unreal Engine, see LoginWithVerifyCode for Unreal Engine SDK.

Function Definition

public static void LoginWithVerifyCode(
string channel,
string account,
string verifyCode,
string phoneAreaCode,
string permissionList = "",
int onlyLoginType = 0);

Parameter Instructions

ParametersTypeExplanation
channelStringChannel for self-built accounts related to platform accounts, such as CustomAccount, EGame.
accountStringAccount can be registered with email and phone number.
verifyCodestringVerification Code
phoneAreaCodestringPhone area code, e.g., "86" for China.If registering with an email address, this field is empty.
permissionListstringPermission List.Typically empty for self-built accounts.
onlyLoginTypeint0: 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 INTL_AUTH_LOGIN.

Code example

string channel = INTLChannel.CustomAccount;
string account = "";
string verifyCode = "";
string phoneAreaCode = "86";
string permissionList = "";

INTLAPI.LoginWithVerifyCode(channel, account, verifyCode, phoneAreaCode, permissionList);