Re:JWTs suck (for web auth and basically everything else)
by frankpf on Thursday August 22, 2019 @07:08PM
(#20773203)
Using a cookie is not a benefit, it's a downside. You have to deal with CSRFs, which aren't possible with localStorage.
[ Parent
| on HN ]
Re:JWTs suck (for web auth and basically everything else)
by rdegges on Thursday August 22, 2019 @07:51PM
(#20773447)
But then you open yourself up to XSS which is a lot harder to defend against.
Re:JWTs suck (for web auth and basically everything else)
by frankpf on Thursday August 22, 2019 @07:56PM
(#20773475)
You don't open yourself up to XSS, see my comment above: https://news.ycombinator.com/item?id=20773188