LoginWithVerifyCode
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see LoginWithVerifyCode for Unreal Engine SDK.
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
| Parameter | Type | Description |
|---|---|---|
| channel | string | Channel of a custom account associated with the platform account, such as CustomAccount or EGame. |
| account | string | Account, which can be registered with an email address or phone number. |
| verifyCode | string | Verification code |
| phoneAreaCode | string | Phone area code, such as "86" for China. If you register an account with an email address, the field is left empty. |
| permissionList | string | Permission list. For a custom account, the field is left empty. |
| onlyLoginType | int | 0: 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);