Skip to content

BIOMETRICS_STATUS

Values of status from getNativeBiometricsStatus(). Read them from cordova.tsauth.BIOMETRICS_STATUS.

Members

MemberValue
AVAILABLE"available"
NOT_ENROLLED"notEnrolled"
NOT_AVAILABLE"notAvailable"
PERMISSION_DENIED"permissionDenied"
LOCKED_OUT"lockedOut"
UNKNOWN"unknown"

type on the same result is faceID, touchID, or opticID on iOS, and biometric on Android. The plugin can also return none.

Usage

const bio = await cordova.tsauth.getNativeBiometricsStatus();
if (bio.status === cordova.tsauth.BIOMETRICS_STATUS.AVAILABLE) {
  await cordova.tsauth.authenticateNativeBiometrics(username, challenge);
}