I'm working on an app that stores a sensitive keypair. I'd love to recommend that users turn on strong biometrics if their device supports it.
canUseBiometricAuthentication()
in
SecureStore
only tells you that a device has strong biometrics
currently enrolled
.
hasHardwareAsync()
in
LocalAuthentication
tells you if a device is
capable
of weak biometrics, but not strong.
It would probably be low-lift to place a param in
hasHardwareAsync()
here to specify strong biometrics. Otherwise, placing a new function in
SecureStore
would also work to check for device capability, not current enrollment. This would dramatically improve our app's UX.