Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JWT tokens are irrevocable by design, or it would defeat the purpose. I would advise against issuing JWT token which are long-lived. Using "refresh tokens" are generally more prefered, as this gives an opportunity to revoke a stolen token in active use by the attacker. Even 7 days seems like an excessively large session time. That is 7 days a stolen token can be used to forge an authenticated session.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: