Fix biometric enable - reset auth state first to force prompt

This commit is contained in:
Johan Jongsma 2026-02-01 19:39:28 +00:00
parent 950f2d976a
commit 999f9691ae
1 changed files with 4 additions and 1 deletions

View File

@ -157,7 +157,10 @@ class AuthService extends ChangeNotifier {
/// Enable biometric authentication for future logins
Future<bool> enableBiometric() async {
// First verify user can authenticate
// Reset auth state so we actually prompt the user
_biometricService.resetAuthState();
// Now verify user can authenticate
final result = await _biometricService.authenticate(
reason: 'Verify your identity to enable biometric login',
);