The table below describes parameters of the authenticate
method:
Name | Description | Type | Use |
---|---|---|---|
user | A name of the user that is being authenticated. | string |
required |
pass | A password for the user that is being authenticated. | string |
required |
This method returns a promise object, which can be in one of the following states:
"Fulfilled" - confirms that the operation has completed successfully.
"Rejected" - returns a JSON object with an error, as described below.
{ "name": error_code "message": detailed_message }
Where error_code
stands for one of the following error codes:
"InvalidCredentials", "EntryAlreadyExists" "EntryDoesNotExist", "InternalError",
"InvalidInputData", and detailed_message
can be an additional message
from the native side.