expo-local-authentication
Version:
Provides an API for FaceID and TouchID (iOS) or the Fingerprint API (Android) to authenticate the user with a face or fingerprint scan.
17 lines (15 loc) • 432 B
text/typescript
import { AuthenticationType, SecurityLevel } from './LocalAuthentication.types';
export default {
async hasHardwareAsync(): Promise<boolean> {
return false;
},
async isEnrolledAsync(): Promise<boolean> {
return false;
},
async getEnrolledLevelAsync(): Promise<SecurityLevel> {
return SecurityLevel.NONE;
},
async supportedAuthenticationTypesAsync(): Promise<AuthenticationType[]> {
return [];
},
};