Hacker News new | ask | show | jobs
by random3 980 days ago
Stop using "Stop using X" arguments, without offering an alternative.
1 comments

Exactly. So anyone reading can suggest what's the alternative while still using JWT?

I mean how to do it properly?

LocalStorage is enough. The point of using a JWT is to avoid using session cookies. If you store the JWT in a cookie, what's the point? You can just use plain old session cookies. Discord keeps their tokens in localStorage and no riots have happened yet