From 0afd6fa84e8f54093e792ddceef9ae3fa5c4cbfd Mon Sep 17 00:00:00 2001 From: Bharat Gupta Date: Fri, 14 Feb 2020 12:45:17 +0530 Subject: [PATCH] Passcode fallback for when user fails biometric multiple times. It might be possible that the user doesn't have biometric access(wet hands etc) but knows lock screen passcode. Then user can use the passcode to authenticate. --- ios/ReactNativeFingerprintScanner.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/ReactNativeFingerprintScanner.m b/ios/ReactNativeFingerprintScanner.m index 5d324eb..1d812df 100644 --- a/ios/ReactNativeFingerprintScanner.m +++ b/ios/ReactNativeFingerprintScanner.m @@ -56,9 +56,9 @@ @implementation ReactNativeFingerprintScanner } // Device has FingerprintScanner - if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) { + if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) { // Attempt Authentication - [context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics + [context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:reason reply:^(BOOL success, NSError *error) {