The easiest way to integrate Payments in your app is here: Learn more

onymos-logo

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

Boolean

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

String

Default: “APP_NAME Biometric Authentication”
Title in authentication dialogue. Only for use with Android devices.

subtitle

String

Default: “Log in using your biometric credentials”
Subtitle in authentication dialogue. Only for use with Android devices.

description

String

Default: “Authentication”
Description in authentication dialogue.

fallbackText

String

Default: “Enter Passcode”
Title of fallback button. Only used when disableFallback is false. Only for use with iOS devices.

negativeButtonText

String

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

Boolean

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
}

Think differently about app development

Download our free white paper today to learn how Onymos Features can maximize the value of your developer resources — and shave days or weeks off your development timeline.

Get your free white paper