About JWT
Stateless & stateful
Stateless: In a stateless system, information is not stored in a database or any persistent format. When a user presents a secret key, the system uses it without any restrictions, granting access based solely on the key. This means that the system does not retain any user information between sessions.
Stateful: In a stateful system, user information is stored in a database. If a user has previously used a secret key, the system recognizes this and associates the key with that specific user. This means that the system retains user information and can track user sessions over time.