Skip to main content

Password Login (LoginWithPassword)

AndroidiOSWindows
If you're using Unreal Engine, see the LoginWithPassword for Unreal Engine SDK.

Function Definition

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

Parameter Instructions

ParametersTypeExplanation
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);