On Android, skip the "Confirm" button when using the Biometrics prompt (e.g.: for devices with face unlock) #11286
victor-marino
started this conversation in
Password Manager
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Code Contribution Proposal
The BitWarden Android client is using Android's Biometrics authentication library, which enables support for any kind of biometrics supported by the device.
For most devices, this is going to be a fingerprint reader. However, some devices (such as the newer Pixels) support secure face unlock too.
Unfortunately, by default the Biometrics API treats any authentication as if it were a high-risk operation (such as a purchase), and requires the user to press a "Confirm" button after a successful face authentication:
However, as pointed out in the docs, this option should be disabled for low-risk actions such as logging into apps, as it breaks the flow and defeats the point of using face authentication in the first place:
The result is then a seamless, iPhone-like authentication flow where the user is just taken to the app without any manual action:
This is how apps like Revolut handle it, for instance.
I think all that needs to be done is to just add
.setConfirmationRequired(false)
to these two instances of the authentication prompt:If you agree with the proposal, would it even make sense for me to raise a pull request for such a small change? Or should I just create an issue for you to add it?
Beta Was this translation helpful? Give feedback.
All reactions