Skip to main content

Verification Code Login (LoginWithVerifyCode)

AndroidiOSPC

If you are using Unreal Engine, see LoginWithVerifyCode for the Unreal Engine SDK.

Function definition​

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

Parameter Instructions​

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