authpass / biometric_storage

Flutter plugin to store data behind biometric authentication (ie. fingerprint)
https://pub.dev/packages/biometric_storage
MIT License
171 stars 101 forks source link

[iOS] errSecAuthFailed on consecutive reads #79

Open hm122 opened 1 year ago

hm122 commented 1 year ago

Issue When doing consecutive reads on iOS with biometric authentication (FaceID), an exception is thrown: Unhandled Exception: PlatformException(SecurityError, Error while Error retrieving item. -25293: -25293: The user name or passphrase you entered is not correct., null, null) Tested with version 4.1.2 and current main branch.

Works without issues on Android.

Steps to reproduce When using the example, change the following line https://github.com/authpass/biometric_storage/blob/main/example/lib/main.dart#L250 to

[...]
final result = await storageFile.read();
final result2 = await storageFile.read();
[...]         

Expected behaviour Consecutive reads should not fail. The authentication prompt should appear for each read.

mekhribonu-s-codexoptimus commented 1 year ago

any updates?