Skip to main content

Password Login (LoginWithPassword)

AndroidiOSPC

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

Function definition​

public static void LoginWithPassword(
string channel,
string account,
string password,
string phoneAreaCode,
string permissionList = "");

Parameter Instructions​

ParametersTypeDescription
channelstringChannel for self-built accounts related to platform accounts, such as CustomAccount, EGame.
accountstringAccount, supporting email and phone number
passwordstringFor more details, see Password Rules.
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.

Observers​

The callback handler 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 password = "";
string phoneAreaCode = "86";
string permissionList = "";

INTLAPI.LoginWithPassword(channel, account, password, phoneAreaCode, permissionList);