Understanding JWT (Json Web Token)
10 points about JWTs and their role in authentication:
[1] JWT is a standard for defining tokens. You can use them to represent claims.
[2] A single JWT contains all the required info about an entity, making it ideal for authentication.
[3] There are 3 main components of a JWT - header, payload, and signature.
[4] The Header component of a JWT contains claims about the token
[5] The Payload contains the registered claims and private claims about the users of the JWT