react-native-touch-id icon indicating copy to clipboard operation
react-native-touch-id copied to clipboard

passcodeFallback related issue

Open vaibhav813 opened this issue 5 years ago • 2 comments

in touch id when user press wrong fingerprint then popup shows enter passcode but when click on enter passcode it is not dispatch me to to passcode screen it throws an error LAErrorUserFallback even i make true passcodeFallback.my options which is used as

const optionalConfigObject = { fallbackLabel: 'Enter Passcode', unifiedErrors: false, passcodeFallback: true,

  };

TouchID.authenticate( 'This is a secure area, please authenticate yourself.', optionalConfigObject, ) .then(success => { // do something... }) .catch(error => { let errorCode = error.code;

      if (errorCode == 'LAErrorUserCancel') {
       // do something...
      } else if (errorCode == 'LAErrorPasscodeNotSet') {
       // do something...
      } else if (errorCode == 'LAErrorUserFallback') {
       // do something...
      } else if (errorCode == 'RCTTouchIDUnknownError') {
      // do something...
      } else {
        alert(error.message);
      }

      console.log('Error is ', error);
    });

vaibhav813 avatar Nov 12 '20 06:11 vaibhav813

@vaibhav813 any update with this? I'm having the same issue and now with face masks, this is critical.

enocmontiel avatar Dec 15 '20 23:12 enocmontiel

He has developed passcode separately https://github.com/naoufal/react-native-passcode-auth

bs-farhan-shaikh avatar Jul 05 '21 13:07 bs-farhan-shaikh