AutoLoginAccount
public BackendReturnObject AutoLoginAccount();
Description
An attempt is made to log in automatically using the ID the device previously used to log in.
If the device has no login history, the app's cache is cleared, or the app was deleted and reinstalled, then the ID information saved in the device is deleted, making auto-login unavailable.
Example
Synchronous
BackendReturnObject bro = Backend.MultiCharacter.Account.AutoLoginAccount();
if(bro.IsSuccess()) {
Debug.Log("Account login successful");
}
Asynchronous
BackendReturnObject bro = Backend.MultiCharacter.Account.AutoLoginAccount(callback => {
if(callback.IsSuccess()) {
Debug.Log("Account login successful");
}
});
SendQueue
SendQueue.Enqueue(BackendReturnObject bro = Backend.MultiCharacter.Account.AutoLoginAccount, callback => {
if(callback.IsSuccess()) {
Debug.Log("Account login successful");
}
});
ReturnCase
Success cases
When the sign-up is successful
statusCode : 200
Error cases
When the token does not exist
statusCode : 404
errorCode : NotFoundException