@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
JavaScript
import { BiometryType } from './definitions.js';
const kBiometryTypeNameMap = {
[]: '',
[]: 'Touch ID',
[]: 'Face ID',
[]: 'Fingerprint Authentication',
[]: 'Face Authentication',
[]: 'Iris Authentication',
};
/**
* Return a human-readable name for a BiometryType.
*/
export function getBiometryName(type) {
return kBiometryTypeNameMap[type] || '';
}