TL; DR: If you want at some point you can cancel the token, yes, save it in something quickly, like Redis.
One of the well-documented drawbacks of using JWT is that there is no easy way to cancel a token if, for example, the user needs to be logged out or the token has been hacked. Canceling a marker would mean looking at it in some kind of storage, and then deciding what to do next. Since one of the points of the JWT is to avoid round trips in db, a good compromise would be to keep it in something less tax than rdbms. This is the perfect job for Radish.
source
share