Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix Platform Exception error "auth_in_progress" for flutter local authentication?

Tags:

I'm trying to implement fingerpritn authentication in my flutter app using local_auth plugin. But it is throwing me Platform Exception Error:

"PlatformException(auth_in_progress, Authentication in progress, null)"

final LocalAuthentication _localAuth = LocalAuthentication();
bool authenticated = false;
try {
  authenticated = await _localAuth.authenticateWithBiometrics(
    localizedReason: 'Scan your fingerprint to authenticate',
    useErrorDialogs: true,
    stickyAuth: false
  );
} on PlatformException
catch(e) {
  print(e);
}
return authenticated; }