sushinpv / react-secure-storage

This is a wrapper written above local storage to write the data securely to local storage
https://npmjs.com/package/react-secure-storage
MIT License
126 stars 12 forks source link

Inconsistency between key of SecureLocalStorage.setItem and SecureLocalStorage.removeItem #2

Closed mcuongvu28 closed 2 years ago

mcuongvu28 commented 2 years ago

If I use SecureLocalStorage.setItem to store data (as string) with 'token' key then the actual key create in local storage is '@secure.s.token'. But when I call SecureLocalStorage.removeItem to remove 'token' key it actual remove '@secure.token' key instead.

I look to repo code and found this problem. Please fix it!

sushinpv commented 2 years ago

Thanks for reporting the issue,

Let me have a look and update accordingly

sushinpv commented 2 years ago

This issue has been resolved in the latest release v1.0.18