Re:JWT should not be your default for sessions
by gravlaks on Thursday May 13, 2021 @03:30AM
(#27139379)
One reason is if you store refreshTokens in localStorage, a hacker's XSS attack can send the refreshToken to himself, and keep refresing the token forever (or until somebody actively invalidates the session) - and thus use the token for whatever evil purpose.
[ Parent
| on HN ]