@aparajita/capacitor-biometric-auth
Version:
Provides access to the native biometric auth & device security APIs for Capacitor apps
17 lines (16 loc) • 591 B
JavaScript
import { BiometryType } from './definitions';
const kBiometryTypeNameMap = {
[]: '',
[]: 'Touch ID',
[]: 'Face ID',
[]: 'Fingerprint Authentication',
[]: 'Face Authentication',
[]: 'Iris Authentication',
};
/**
* Return a human-readable name for a BiometryType.
*/
// eslint-disable-next-line import/prefer-default-export
export function getBiometryName(type) {
return kBiometryTypeNameMap[type] || '';
}