Skip to main content
Version: 6.0.0

CustomSignIn

public BackndReturnObject CustomSignIn(string id, string password);
public BackndReturnObject CustomSignIn(string id, string password, string etc);

Parameter

ValueTypeDescription
idstringID
passwordstringPassword
etcstring(Optional) Information you wish to save in addition

Description

The account that has successfully undergone custom sign-up may log in by using the custom login function.

Example

Synchronous

BackndReturnObject bro = Backnd.Player.CustomSignIn("id" , "password");
if(bro.IsSuccess())
{
Debug.Log("Login successful");
}

Asynchronous

Backnd.Player.CustomSignIn("id", "password", callback => {
if(callback.IsSuccess())
{
Debug.Log("Login successful");
}
});

Return cases

Success cases

When the login is successful
statusCode : 200

Error cases

When the device information is 'null'
statusCode : 400
errorCode : UndefinedParameterException

When the ID does not exist
statusCode : 401
errorCode : BadUnauthorizedException

When the password is incorrect
statusCode : 401
errorCode : BadUnauthorizedException

When the project status is 'Maintenance'(whitelisted users excluded)
statusCode : 401
errorCode : BadUnauthorizedException

When the user is blocked
statusCode : 403
errorCode : Reason for blocking entered in the console

When the device is blocked
statusCode : 403
errorCode : ForbiddenException

When withdrawal is in progress(after calling the DeleteAccount method)
statusCode : 410
errorCode : GoneResourceException