What is a JWT?
A JSON Web Token (JWT) is a compact, URL-safe way of representing claims to be transferred between two parties. JWTs are commonly used for:
- Authentication: After login, a JWT is issued and sent with each request
- Authorization: JWTs contain claims about what the user can access
- Information Exchange: Securely transmitting data between parties
JWTs are self-contained, meaning all necessary information is in the token itself.