mibrito707 / cordova-plugin-secure-storage-echo

Secure storage plugin for Apache Cordova
MIT License
73 stars 73 forks source link

Creating a new SecureStorageObject does not trigger error callback #78

Open Spinnenzunge opened 2 years ago

Spinnenzunge commented 2 years ago

Creating a new SecureStorageObject does not trigger error callback in case the phone lock protection is not secure enough.

E.g. Removing the PIN code from an iPhone and creating a SecureStorageObject does still trigger the success callback but then fails when trying to read or write data.

var ss = new cordova.plugins.SecureStorage(
  function () {
    // always triggers success callback even if PIN code removed and phone not secure.
    console.log('Success');
  },
  function (error) {
    console.log('Error ' + error);
  },
  SECURE_STORAGE_NAMESPACE
);
douglasjunior commented 4 months ago

Same here with Xcode 15 and iOS 17.

EDIT:

Solved by removing and adding the plugin again 😒

npx ionic cordova plugin remove cordova-plugin-secure-storage-echo
npx ionic cordova plugin add cordova-plugin-secure-storage-echo

It's funny because nothing changed in the project.