3 ms·
> If you need to make a DB trip on every request There's no extra DB request, assuming you need to lookup the user model on each request already.
by Alex3917 5y ago
> If you need to make a DB trip on every request
There's no extra DB request, assuming you need to lookup the user model on each request already.
- jakelazaroff 5y agoIn 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.