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
| Parameters | Type | Description |
|---|---|---|
| channel | string | Channel for self-built accounts related to platform accounts, such as CustomAccount, EGame. |
| account | string | Account can be registered with email and phone number. |
| verifyCode | string | Verification Code |
| phoneAreaCode | string | Phone area code, e.g., "86" for China.If registering with an email address, this field is empty. |
| permissionList | string | Permission List.Typically empty for self-built accounts. |
| onlyLoginType | int | 0: 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);