martinkasa / capacitor-secure-storage-plugin

Capacitor plugin for storing string values securly on iOS and Android.
MIT License
155 stars 56 forks source link

Suggestion: using session storage. #26

Closed alessandroAmedei closed 3 years ago

alessandroAmedei commented 4 years ago

Is there a way to use session storage instead of local storage?

martinkasa commented 4 years ago

No. Just keep in mind, as is written in the description, in browser data are just obfuscated, so they can not be considered as safe.

alessandroAmedei commented 4 years ago

I just want to use the session storage because when the user closes the tab it will delete the storage automatically.

martinkasa commented 3 years ago

In that case it would work differently on web platform than in android and ios. This plugin should not be used on the web in production and if you need for development purposes delete all keys on startup, you can compine keys() and remove() methods to do so.