create


Purpose

Stores credentials as hash values (on iOS) or in an encrypted SQL database (on Android).

Signature

create( user, pass )

Parameters

The table below describes parameters of the create method:

Name Description Type Use
user A name of the user that is being created. string required
pass A password for the user that is being created. string required

Returns

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.

Related topics

CredentialsLockAuthenticator
Legal notice | Copyright © 2017 and Confidential to Pegasystems Inc. All rights reserved
PDN | Feedback
Advanced...