Re:JWT should not be your default for sessions
by jakelazaroff on Thursday May 13, 2021 @09:26AM
(#27141808)
In that case, you can avoid DB overhead by joining the user when you query the session. I'm still not sure what advantage JWTs have in this scenario.
There's no extra DB request, assuming you need to lookup the user model on each request already.