secure-ls
secure-ls copied to clipboard
how to delete key
how to remove data when encryptionSecret
change rather then throw off error
I do test with default setting then later change the encryptionSecret
unable to access my app till I clear all the stored data
You can solve it envolving de get('key') method with a try-catch block, if it throw error then remove the key with remove('key') method.
For example, I have this on my code: