mockdock.dev

~/tools / 05 / jwt-token-claims

JWT Payload Simulator

Your route guards, RBAC middleware, and token-refresh logic all key off JWT claims — so mock the claims, not the crypto. Each template pairs a plausible signed-looking bearer token with its decoded header and payload, covering an administrator grant with write scopes and an already-expired token for testing your 401-and-refresh path. Signatures are decorative: never use these against a real verifier.

compose payload

— validating —

exported mock url

▸ open mock ↗
simulated response headers

$ man jwt-claims

Everything above is encoded into the #data= fragment of the exported URL — deflated and base64url-packed by your browser. Fragments are never sent to any server, so this mock is shareable and private. Paste the URL anywhere: a teammate's browser decodes it identically.

grep -i related-searches

  • mock jwt token response
  • fake bearer token for testing
  • jwt admin role claims example
  • test expired jwt handling
  • jwt payload generator online