node-cache
node-cache copied to clipboard
Is this library a good replacement for localstorage and session storage for security
I was wondering if putting authorization tokens from a web api to a memory cache is better for preventing xss attacks than using localstorage or sessionstorage (or if its the same risk)
It is "only" a storage. Stored data is your privileges. Not better, not worst.
It’s not possible to you this package for saving any data in browser because if a user refreshes a page your saved data in memory cache will be lose