Security & Auth⏱️ 8 min readUpdated: 2026-08-19

JWT Structure Explained: Header, Claims, and Signatures

Deep dive into JSON Web Token internals. Learn standard registered claims (iss, sub, exp, iat, aud), HMAC vs RSA signatures, and security pitfalls.

Registered Standard Claims

RFC 7519 defines recommended standard claims in the JWT payload:

  • iss (Issuer): Identifies the authorization server that issued the token.
  • sub (Subject): The principal identifier (e.g. unique User ID).
  • aud (Audience): The target resource server or API client.
  • exp (Expiration Time): Unix epoch timestamp identifying when token expires.
  • iat (Issued At): Unix epoch timestamp when token was created.
  • nbf (Not Before): Unix timestamp before which token must not be accepted.

Symmetric vs. Asymmetric Signing

  • HMAC (e.g. HS256): Uses a shared secret key for both signing and verification. Ideal for internal microservices sharing a secure config.
  • RSA / ECDSA (e.g. RS256, ES256): Uses a private key to sign the token and a public key (JWKS) to verify signatures. Standard for multi-tenant OAuth/OIDC providers (Auth0, Okta, Google).

Try Related Tools on ToolNest