Local Storage is an implementation of a key-value store
which is accessible through a javascript interface in most modern browsers. It is a general purpose interface to store strings which will persist in memory from session to session. It is designed for smaller strings and alternative open source systems like localForage exist for large amounts of data.
Local Storage properties:
- Domain Specific
- Persistent from Session to Session
- Cross browser compatible
Using Javascript to Store JWTs
Security Consideration of Local Storage
这里就放几篇文章供阅读吧
Input Sanitation
Web Docs
Why Cookies aren’t necessarily safe
OWASP XSS Cheat Sheet
Refresh Tokens
Protecting your cookies: HttpOnly
Cookies in Flask
localForage