Open defranke opened 4 years ago
hello, some bugs are device specific and hard to fix for people who do not experience them. Since you can reproduce it easily, I suggest you debug this and contribute a fix yourself. If you cannot do that, please provide a minimal repro - see https://stackoverflow.com/help/mcve and then maybe someone, some day, will pick it up and fix it. Thank you.
Same problem here, with the same device. Test project: https://github.com/sebk/RNKeyChainTest It is exactly the example project of the react-native-keychain project. I'm still debugging and trying things, but without any progress.
Edit: For the UserNotAuthenticatedException I found an interesting article: https://medium.com/@flschweiger/authentication-sucks-bad-security-too-345ed20463d4
I'm trying your example code from the readme on a Samsung Galaxy S6 Edge and sometimes reading the secret fails.
Writing to the keychain seems to work fine, but when I try to read from the keychain I sometimes get an error. In the android logs of the device I can see two exceptions while trying to read. The first exception is thrown before or right when the biometrics dialog is shown:
The second exception is thrown after I used my fingerprint to authenticate:
This happens maybe in average every second time.