What is JWT
JWT (JSON Web Token) is a compact, URL-safe token format defined by RFC 7519 for securely transmitting information between parties as a JSON object. A JWT consists of three Base64URL-encoded parts separated by dots: Header (algorithm and token type), Payload (claims/data), and Signature (cryptographic verification). JWTs are self-contained, meaning all necessary information is embedded within the token itself, eliminating the need for database lookups during verification.