Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/local_auth/local_auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ Currently the following biometric types are implemented:
- BiometricType.face
- BiometricType.fingerprint

To get a list of enrolled biometrics, call getAvailableBiometrics:
To get a list of enrolled biometrics, call getEnrolledBiometrics:

```dart
List<BiometricType> availableBiometrics =
await auth.getAvailableBiometrics();
await auth.getEnrolledBiometrics();

if (Platform.isIOS) {
if (availableBiometrics.contains(BiometricType.face)) {
Expand Down Expand Up @@ -212,7 +212,7 @@ Update your project's `AndroidManifest.xml` file to include the
On Android, you can check only for existence of fingerprint hardware prior
to API 29 (Android Q). Therefore, if you would like to support other biometrics
types (such as face scanning) and you want to support SDKs lower than Q,
_do not_ call `getAvailableBiometrics`. Simply call `authenticate` with `biometricOnly: true`.
_do not_ call `getEnrolledBiometrics`. Simply call `authenticate` with `biometricOnly: true`.
This will return an error if there was no hardware available.

## Sticky Auth
Expand Down