How to use the expo-local-authentication.isEnrolledAsync function in expo-local-authentication

To help you get started, we’ve selected a few expo-local-authentication examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / apps / native-component-list / src / screens / LocalAuthenticationScreen.tsx View on Github external
async checkDevicePossibilities() {
    const hasHardware = await LocalAuthentication.hasHardwareAsync();
    const isEnrolled = await LocalAuthentication.isEnrolledAsync();

    this.setState({ hasHardware, isEnrolled });
  }

expo-local-authentication

Provides an API for FaceID and TouchID (iOS) or the Fingerprint API (Android) to authenticate the user with a face or fingerprint scan.

MIT
Latest version published 1 month ago

Package Health Score

95 / 100
Full package analysis