JSON Web Token (JWT) is a compact token format that carries claims as a JSON object and protects them with a signature or encryption. It was standardized as RFC 7519 in 2015 and takes the form of a string in which the header, payload and signature are Base64URL-encoded and joined by periods.
Because the issuer signs the token, a recipient can verify the signature to detect tampering, and the server does not need to store session state. JWTs are widely used as OAuth 2.0 access tokens and OpenID Connect ID tokens. The payload is not encrypted by default, so secrets should not be placed in it.