Keeping any sensitive information in LocalStorage is a pretty bad idea. It's great for things like user preferences, language settings, light/dark mode and other stuff your users are allowed to change. But for payment info or session ids, that's a NO from me dawg
Stay up to date with web dev: https://www.joshtriedcoding.com/
-- my links
Discord: / discord
GitHub: https://github.com/joschan21