Diagnose biometric: show real error on retry, disable sensitiveTransaction, enable useErrorDialogs for reliable OS prompt
This commit is contained in:
@@ -61,9 +61,15 @@ class AuthService {
|
||||
// device credentials (PIN/pattern) so the user isn't hard-blocked.
|
||||
for (final opt in [
|
||||
const AuthenticationOptions(
|
||||
biometricOnly: true, stickyAuth: true, sensitiveTransaction: true),
|
||||
biometricOnly: true,
|
||||
stickyAuth: true,
|
||||
sensitiveTransaction: false,
|
||||
useErrorDialogs: true),
|
||||
const AuthenticationOptions(
|
||||
biometricOnly: false, stickyAuth: true, sensitiveTransaction: true),
|
||||
biometricOnly: false,
|
||||
stickyAuth: true,
|
||||
sensitiveTransaction: false,
|
||||
useErrorDialogs: true),
|
||||
]) {
|
||||
try {
|
||||
final ok = await _localAuth.authenticate(
|
||||
|
||||
Reference in New Issue
Block a user