authenticate


Purpose

Retrieves the JSON object from a fingerprint-secured keychain. Data retrieval requires that the user authenticates with the enrolled fingerprint.

Signature

authenticate( )

Returns

This method returns a promise object, which can be in one of the following states:

  • Resolve - returns an payload object that can can contain any properties. For example, it can be structured as follows.

    {
      identifier,
      password
    }

    Where identifier stands for a user identifier and password stands for a user password connected with the identifier.

  • Reject - returns an object that is an instance of a generic Error class, as described below.

    {
      "name": error_code
      "message": detailed_message
    }

Where error_code stands for one of the error codes described in the Constants section of the Authentication article and detailed_message can be an additional message from the native side.

Related topics

FingerprintAuthenticator
Legal notice | Copyright © 2017 and Confidential to Pegasystems Inc. All rights reserved
PDN | Pega Mobile Client | Feedback
Advanced...