pradeep1991singh / cordova-plugin-secure-key-store

Cordova plugin for securely saving keys, passwords or strings on devices.
MIT License
25 stars 29 forks source link

Error while using cordova.plugins.SecureKeyStore.get for the key that doesn't exist. #10

Closed vaibhav915 closed 7 years ago

vaibhav915 commented 7 years ago

Hi, I am getting error while using get method for the key that doesnot exist in keystore. cordova.plugins.SecureKeyStore.get(function (res) { alert(res); }, function (error) { alert(error); }, "abc");

ERROR MESSAGE: Api-level:21 Exception: Need RSA private or public key

Can I get some error code that state key doesn't exist instead of above message

pradeep1991singh commented 7 years ago

@vaibhav915 added in v1.5.2