JWT error index

JWT Troubleshooting

Inspect JWT structure, Base64URL segments, JSON claims, time values, algorithms, key identifiers, and verification-related mistakes safely.

Diagnostic workflow

How to troubleshoot JWT problems

A JWT can be decoded without being trustworthy, so separate structural decoding from cryptographic verification and claim validation. First make sure the token has three valid segments and parseable JSON; only then reason about algorithms, keys, issuer, audience, expiry, and not-before rules.

  • Check for exactly three dot-separated segments and valid Base64URL in the header and payload before interpreting any claim values.
  • Read alg, typ, and kid from the decoded header, but do not treat a successful decode as evidence that the signature or signing key is valid.
  • Validate exp, iat, nbf, issuer, audience, and subject against the consuming application's rules after signature verification succeeds.

Browse focused fixes

Common JWT problems

24 troubleshooting pages

Understand the underlying concepts

1 related guides