CustomSignUp
public BackendReturnObject CustomSignUp (string id, string password);
public BackendReturnObject CustomSignUp (string id, string password, string etc);
Parameters
Value | Type | Description |
---|---|---|
id | string | ID required for custom account sign-up |
password | string | Password required for custom sign-up |
etc | string | (Optional) Information you wish to save in addition |
Description
The user manually selects the ID and password to sign up.
- Accounts created through custom sign-up can be changed to Google/Apple/Facebook federation accounts.
Example
Synchronous
BackendReturnObject bro = Backend.BMember.CustomSignUp("id" , "password");
if(bro.IsSuccess())
{
Debug.Log("Sign-up successful.");
}
Asynchronous
Backend.BMember.CustomSignUp("id", "password", callback => {
if(callback.IsSuccess())
{
Debug.Log("Sign-up successful.");
}
});
SendQueue
SendQueue.Enqueue(Backend.BMember.CustomSignUp, "id", "password", callback => {
if(callback.IsSuccess())
{
Debug.Log("Sign-up successful.");
}
});
Return cases
Success cases
When the sign-up is successful
statusCode : 201
Error cases
When the device information is 'null'
statusCode : 400
errorCode : UndefinedParameterException
When the project status is 'Maintenance'
statusCode : 401
errorCode : BadUnauthorizedException
When the device is blocked
statusCode : 403
errorCode : ForbiddenException
When there is a duplicated customId
statusCode : 409
errorCode : DuplicatedParameterException