SelfLender / react-native-biometrics

React Native module for iOS and Android biometrics
MIT License
644 stars 217 forks source link

[Question] - Update through the store deleting credentials in keychain ? #129

Open MayoudP opened 3 years ago

MayoudP commented 3 years ago

Referencing this issue https://github.com/SelfLender/react-native-biometrics/issues/52#issuecomment-645937109

I was wondering if updating your app through the apple store or google play store wasn't deleting your credential (private key).

Because, when a user do that, the app isn't logout or doesn't uninstall the application. But then, when I'm calling this method : ReactNativeBiometrics.createSignature() it's throwing an error, and I need the user to create again a key-pairs values.

If you have any ideas.

handlez36 commented 2 years ago

I see this issue was raised a year ago, but I am seeing something similar (not even through the stores, just deploying new test builds seems to remove/invalidate the keys). Did you ever find the answer to this @MayoudP ?

I wonder if the keys created and checked for are tied to application build metadata...metadata that could potentially get updated with new builds?

Anyone else seeing this or have answers toward this? I would prefer if a key is created that would remain valid and consistent across builds; is that possible?

Thanks in advance!