Hacker News new | past | comments | ask | show | jobs | submit login

That's the idea of the JWT, no DB query or in this case additional network request needed to authenticate.

Depending on your use case it's worth thinking about the expiration time. I assume that's checked in your client but do you also need to invalidate tokens or downgrade permissions before they expire? In that case you might want to work with smaller expiration times or get a denylist.




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

Search: