Skip to main content

Verification code login (LoginWithVerifyCode) [Player Network SDK only]

[Player Network SDK only] Login using a verification code.

Supported platforms

Supports Android, iOS, Windows platform.

Function Definition

void LoginWithVerifyCode(
string channel,
string account,
string password,
string verifyCode,
string phoneAreaCode,
string permissionList = "");

Input Parameters

ParametersTypeDescription
channelstringChannel for custom accounts, related to platform accounts such as CustomAccount, EGame, etc.
accountstringAccount, supporting email and phone number
passwordstringFor more information, see Password Guidelines.
phoneAreaCodestringPhone area code example "86" for China, leave empty if the account is an email.
permissionListstringList of permissions.Usually empty for self-built accounts.

Callback Handling

The callback handling interface is GUALoginResultObservers.The callback data structure is GUALoginResult.

The callback event is LoginResultEvents. Callback ID is GUA_ACCOUNT_LOGIN.

Code Example

UnionAdapterAPI.GetAccountService().LoginWithVerifyCode("WeChat", "account", "password", "verifyCode", "86");