Name | Description | Type | Use |
---|---|---|---|
credentials | A user credentials object. | object |
required |
callback | A JavaScript object, as described below. | object |
required |
The Credentials
object can be structured as follows:
{ identifier, password }
Where identifier
stands for a required user identifier property and password
stands for a
required user password property.
The saveCredentials
method's callback object can be structured as
follows:
{ onSuccess: function() { ... }, onFailure: function({code, description}) { ... } }
Name | Description | Return type |
---|---|---|
onSuccess | This method is called after credentials are successfully saved in the keychain. | undefined |
onFailure | This method is called if the process fails. It passes the error object with two
properties: code , which contains an error code, and
description , which contains a human-readable error
description. |
undefined |