Re:JWT should not be your default for sessions
by lbriner on Thursday May 13, 2021 @03:28AM
(#27139370)
How does that help? You won't know which tokens should be considered expired in-advance, you still have to call the DB for every request to check. There won't be many that are called with expired tokens compared with people using the site constantly and always having valid tokens.
[ Parent
| on HN ]
Re:JWT should not be your default for sessions
by bobthebuilders on Thursday May 13, 2021 @01:48PM
(#27145021)
You don't need a DB. The same in memory stuff that supposedly works for fast session auth works here too.