sjhoeksma / cordova-plugin-keychain-touch-id

Touch ID plugin with saving password in keychain for IOS and android
87 stars 160 forks source link

passcode not showing after FACEID failed on Iphone 11 #71

Open ukenpachi opened 4 years ago

ukenpachi commented 4 years ago

Hi guys, on iPhone 11 after face id failed. I get the option to use a passcode, however, this is not showing up for me to enter the password, instead the error callback method is called. This happens for to both .save and .verify

window.plugins.touchid.has('refresh_token', function () {
    window.plugins.touchid.verify('refresh_token', 'Verify yourself', function (password) {
        console.log("Touch " + password);
    }, function (error) {
       //this the errorCallback I am referring to
        console.log(JSON.stringify(error)); 
        //{"OS": "IOS", "ErrorCode":"-3", "Error-Message":"Fallback authentication mechanism selected"}
    });
    }, function () {
        window.plugins.touchid.save('refresh_token', credentials.refresh_token, true, function (res) {
            console.log("Password saved");
        }, function (error) {
            console.log('we got an error');
    });
}); 

just wondering if I need to do something exist. Thank you