UNPKG

@boindahood/react-native-biometrics

Version:
34 lines (33 loc) 1.79 kB
"use strict"; import { TurboModuleRegistry } from 'react-native'; export let BiometricType = /*#__PURE__*/function (BiometricType) { BiometricType["FINGERPRINT"] = "fingerprint"; BiometricType["FACE_ID"] = "faceId"; BiometricType["TOUCH_ID"] = "touchId"; BiometricType["IRIS"] = "iris"; BiometricType["NONE"] = "none"; return BiometricType; }({}); export let BiometricErrorCode = /*#__PURE__*/function (BiometricErrorCode) { BiometricErrorCode["BIOMETRIC_NOT_AVAILABLE"] = "BIOMETRIC_NOT_AVAILABLE"; BiometricErrorCode["BIOMETRIC_NOT_ENROLLED"] = "BIOMETRIC_NOT_ENROLLED"; BiometricErrorCode["BIOMETRIC_PERMISSION_DENIED"] = "BIOMETRIC_PERMISSION_DENIED"; BiometricErrorCode["BIOMETRIC_LOCKOUT"] = "BIOMETRIC_LOCKOUT"; BiometricErrorCode["BIOMETRIC_LOCKOUT_PERMANENT"] = "BIOMETRIC_LOCKOUT_PERMANENT"; BiometricErrorCode["BIOMETRIC_AUTH_FAILED"] = "BIOMETRIC_AUTH_FAILED"; BiometricErrorCode["BIOMETRIC_USER_CANCEL"] = "BIOMETRIC_USER_CANCEL"; BiometricErrorCode["BIOMETRIC_SYSTEM_CANCEL"] = "BIOMETRIC_SYSTEM_CANCEL"; BiometricErrorCode["BIOMETRIC_PRESSED_OTHER_WAY"] = "BIOMETRIC_PRESSED_OTHER_WAY"; BiometricErrorCode["BIOMETRIC_UNKNOWN_ERROR"] = "BIOMETRIC_UNKNOWN_ERROR"; return BiometricErrorCode; }({}); export let BiometricOtherwayMode = /*#__PURE__*/function (BiometricOtherwayMode) { BiometricOtherwayMode["HIDE"] = "hide"; // hide the other way option only on IOS BiometricOtherwayMode["CALLBACK"] = "callback"; // callback return pressedOtherway = true to easy handle the case when user pressed other way BiometricOtherwayMode["PIN"] = "PIN"; // use device PIN/passcode to authenticate return BiometricOtherwayMode; }({}); export default TurboModuleRegistry.getEnforcing('Biometrics'); //# sourceMappingURL=NativeBiometrics.js.map