JWT Authentication: Access Tokens, Refresh Tokens, Cookies, and Authorization
1. Stateful vs Stateless Authentication
Before understanding JWT, we should understand the difference between stateful and stateless authentication.
Stateful Authentication
In stateful authentication,