by rtev · 4y ago · 0 comments
The problem is, you’ll slip up here and there. The experts recommend not rolling your own for a reason; little mistakes and gotchas like the details in your post can lead to significant compromise.
If there’s a use case to keep session tokens in localstorage, it’s insecure design that’s inherently vulnerable.