About JWT
JWT (JSON Web Token) is an open standard (RFC 7519) for securely transmitting information between parties. It consists of three parts: header, payload, and signature, separated by dots.
JWT Structure
- β’ Header: Contains token type and signing algorithm information
- β’ Payload: Contains claims information
- β’ Signature: Used to verify token integrity and authenticity
Common Claims
- β’ iss (issuer): Token issuer
- β’ sub (subject): Token subject
- β’ aud (audience): Token audience
- β’ exp (expiration): Expiration time
- β’ nbf (not before): Not valid before time
- β’ iat (issued at): Issued at time
- β’ jti (JWT ID): Unique identifier