node-cache icon indicating copy to clipboard operation
node-cache copied to clipboard

Is this library a good replacement for localstorage and session storage for security

Open startupbuilders777 opened this issue 7 years ago • 2 comments

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)

startupbuilders777 avatar Mar 16 '18 20:03 startupbuilders777

It is "only" a storage. Stored data is your privileges. Not better, not worst.

BCsabaEngine avatar Jul 04 '20 06:07 BCsabaEngine

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

IvanAdmaers avatar Jan 22 '22 16:01 IvanAdmaers