onymosBioAuth.isAvailable
Checks if any bio-authentication capabilities are available on the device (e.g., touch-id, face-id, etc)
OnymosBioauth.isAvailable(
   (bioauthAvailable, bioauthTypeObject) => {
      /* ------
         bioauthAvailable: Boolean. Whether or not bioauth can be used on the device
         bioauthTypeObject = {
            bioauthType:  The type of bioauth the device has enabled ("face" or "touch"). Property available on iOS devices only.
         };
      ------ */
        },
   (error) => {
      console.log(error);
   }
);
onymosBioAuth.authenticate
Prompts user for authentication and authenticates using bioauth.
OnymosBioauth.authenticate(
   (status) => {
      console.log(status)
   },
   (error) => {
      console.log(error);
   },
   options
);
 options
 disableFallback
Default: false
 Specifies whether to remove device credential backup option on authentication dialogue. If true, the device’s system fallback will not be used.  
 title
Default: “APP_NAME Biometric Authentication”
 Title in authentication dialogue. Only for use with Android devices.
 subtitle
Default: “Log in using your biometric credentials”
 Subtitle in authentication dialogue. Only for use with Android devices.
 description
Default: “Authentication”
 Description in authentication dialogue.
 fallbackText
Default: “Enter Passcode”
 Title of fallback button. Only used when disableFallback is false. Only for use with iOS devices.
 negativeButtonText
Default: “Cancel”
 Title of negative/cancel button. Only used when ‘disableFallback’ is true. May be used specify cancel or fallback action. Only for use with Android devices.
 confirmationRequired
Default: false
 Specifies whether user confirmation is required after biometric authentication. Only for use with Android devices.
 Usage Example
1.
{
disableFallback: false,
title: ‘Bioauth Login’,
subtitle: ‘Login with with Bioauth’,
description: ‘Confirm Authorization’,
fallbackText: ‘Enter PIN’,
confirmationRequired: false
}
2.
{
disableFallback: true,
title: ‘Bioauth Login’,
subtitle: ‘Login with with Bioauth’,
description: ‘Confirm Authorization’,
negativeButtonText: ‘Back’
confirmationRequired: false
}