ionic-team / cordova-plugin-ios-keychain

Apache Cordova (PhoneGap) plugin
Other
62 stars 44 forks source link

Pressing cancel returns null, same if the key doesn't exist #41

Open wall-street-dev opened 3 years ago

wall-street-dev commented 3 years ago

On the passcode screen, if the user presses the cancel button the promise of the keychain.get resolves to null, but it will also resolve to null if the key you're trying to get doesn't exist. This is major because then you are not able to tell if the key doesn't exist or if the user just pressed the cancel button.