sjhoeksma / cordova-plugin-keychain-touch-id

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

Error in Success callbackId: TouchID681579780 : TypeError: Not enough arguments #20

Closed crapthings closed 6 years ago

crapthings commented 7 years ago
enableTouchId = () => {
    window.plugins.touchid.save('__touchId__', 'g3KYWA8ExzkDZGMt8', () => {
      this.setState({ isTouchIdEnabled: true });
      localStorage.setItem({ isTouchIdEnabled: true });
    }, () => {});
  }

what is this about ?

idmedia-kaiser commented 6 years ago

I assume this is NOT a plugin error but due to localStorage.setItem takes 2 arguments, not a json structure https://developer.mozilla.org/de/docs/Web/API/Storage/setItem

crapthings commented 6 years ago

okay thank u,m fault already works. just forgot to close. thanks again~~~