Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new option to isAvailable - requireStrongBiometrics #480

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

austinwark
Copy link
Contributor

Description

Added a new option to isAvailable() - requireStrongBiometrics. When true, backend calls to BiometricManager.canAuthenticate() will specify strong biometrics only. This should fix the underlying issue behind #473.

How did you test your changes?

Tested on Android Samsung Galaxy S22. Confirmed that isAvailable(successFN, errorFN, { requireStrongBiometrics: true }) fails when the device has only a face ID (weak) registered and passes when a device has one or more fingerprints (strong) registered.

@NiklasMerz
Copy link
Owner

Let's do this in a major release since this could be a breaking change for some.

Copy link
Owner

@NiklasMerz NiklasMerz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM to me and short test with paramedic works fine.

@NiklasMerz NiklasMerz merged commit 80f2684 into NiklasMerz:master Mar 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BREAKING release: consider requiring strong biometrics on Android
2 participants