UNPKG

@aparajita/capacitor-biometric-auth

Version:

Provides access to the native biometric auth & device security APIs for Capacitor 7+ apps

16 lines (15 loc) 537 B
import { BiometryType } from './definitions.js'; const kBiometryTypeNameMap = { [BiometryType.none]: '', [BiometryType.touchId]: 'Touch ID', [BiometryType.faceId]: 'Face ID', [BiometryType.fingerprintAuthentication]: 'Fingerprint Authentication', [BiometryType.faceAuthentication]: 'Face Authentication', [BiometryType.irisAuthentication]: 'Iris Authentication', }; /** * Return a human-readable name for a BiometryType. */ export function getBiometryName(type) { return kBiometryTypeNameMap[type] || ''; }