Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passcodeFallback related issue #282

Open
vaibhav813 opened this issue Nov 12, 2020 · 2 comments
Open

passcodeFallback related issue #282

vaibhav813 opened this issue Nov 12, 2020 · 2 comments

Comments

@vaibhav813
Copy link

vaibhav813 commented Nov 12, 2020

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);
    });
@enocmontiel
Copy link

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

@bs-farhan-shaikh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants