Hacker News new | ask | show | jobs
by wg0 980 days ago
Exactly. So anyone reading can suggest what's the alternative while still using JWT?

I mean how to do it properly?

1 comments

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