naoufal / react-native-touch-id

React Native authentication with the native Touch ID popup.
https://www.npmjs.com/package/react-native-touch-id
1.47k stars 476 forks source link

TouchID Authenticator doesn't always show up #246

Closed galimpian closed 5 years ago

galimpian commented 5 years ago

I require on app open that the user needs to authenticate with TouchID/FaceID and or with passcode. The first time I open up the app I am prompted with TouchID authenticator. I swipe up the app out of cache and when I reopen it again I am presented with the passcode screen instead and no TouchID authenticator. I did not fail with the TouchID the first time around so wondering why this behavior is even occurring. I am also seeing this in the error case when I console log out error but I also see this when the TouchID Authenticator shows too. LAErrorSystemCancel | Authentication was canceled by system—for example, if another application came to foreground while the authentication dialog was up.

elirangoshen commented 4 years ago

what you did ? im having this issue as well

galimpian commented 4 years ago

@elirangoshen you must change out touchIDDisabled property to true if you want to show FaceID or TouchID

elirangoshen commented 4 years ago

from where i change it ? from native ?

@elirangoshen you must change out touchIDDisabled property to true if you want to show FaceID or TouchID

how ?

galimpian commented 4 years ago

@elirangoshen The component itself , if you review the readme doc of all the props it takes you'll see touchIDDisabled is one of them and how it works.