Skip to main content

LoginWithVerifyCode

AndroidiOSWindows
If you were looking for the method for use with 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);

Input parameters

ParameterTypeDescription
channelstringChannel of a custom account associated with the platform account, such as CustomAccount or EGame.
accountstringAccount, which can be registered with an email address or phone number.
verifyCodestringVerification code
phoneAreaCodestringPhone area code, such as "86" for China. If you register an account with an email address, the field is left empty.
permissionListstringPermission list. For a custom account, the field is left empty.
onlyLoginTypeint0: Supports login and registration
1: Only supports login

Observers

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

The callback methodID is INTL_AUTH_LOGIN.

Code sample

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

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