Tokens vs JWTs
Course: Authentication - chapter 6
There is a problem with using stateful tokens.
Stateful
Section titled “Stateful”By stateful here, we mean that we need to store these tokens in a variable right now (and eventually in a database).
Problem
Section titled “Problem”The problem is that we need to send a request to the database every time the user wants to hit an authenticated endpoint

Solution
Section titled “Solution”JWTs