You are here: Local Authentication API > authenticate

kony.localAuthentication Namespace

The kony.localAuthentication namespace provides the functions to authenticate, get the status of the authentication mode, and cancel authentication.

Note: For information about how to enable the Face ID feature in your Kony Visualizer application, click here. For information about how to detect whether a device supports either the Touch ID or Face ID feature, refer the getBiometryType API.

This namespace contains the following API elements.

Functions

The kony.localAuthentication namespace provides the following functions.

Authentication Modes

The following is an authentication mode and Touch ID or Face ID is used for authentication.

Note: You can use the same constant for the Face ID feature. For information about how to detect whether a device supports either the Touch ID or Face ID feature, refer the getBiometryType API.

Status Codes

The following table provides a list of status codes and their descriptions.

Status Codes Description
5000 No Error
5001 Authentication is not successful because a user fails to provide valid credentials.
5002 Authentication is canceled by a user. For example, a user taps Cancel in the dialog box.
5003 Authentication is canceled because a user taps the fallback button (Enter Password). This is applicable only for the iOS platform.
5004 Authentication is canceled by system. This is applicable only for the iOS platform.
5005 Authentication does not start because the passcode is not set on the device.
5006 Authentication does not start because Touch ID or Face ID is not available on the device.
5007 Authentication does not start because Touch ID has no enrolled fingerprints or Face ID has no enrolled face recognition.
5008 Authentication does not start because the target device's OS does not support local authentication with Touch ID or Face ID. This is applicable only for the iOS platform.
5009 Authentication was not successful because there were too many failed Touch ID attempts, and the Touch ID feature has now been locked. This is applicable only for the iOS platform.

 

 

 

 

Rev Author Edits
7.1 NC NC

Copyright © 2013 Kony, Inc. All rights reserved.