What Is a JSON Web Token?
A JSON Web Token (JWT) is a compact, URL-safe token format defined in RFC 7519. JWTs carry claims between two parties and are commonly used for authentication, authorization, and information exchange in web applications.
A JWT consists of three Base64URL-encoded parts separated by dots: the Header (algorithm and type), the Payload (claims like subject, expiration, issuer), and the Signature (used to verify the token hasn't been tampered with).