consolelog.tools
Workflow

JWT and authentication debugging tools

Decode the token, check the claims, generate a test token, verify the signature.

Most authentication bugs come down to a token that’s expired, scoped wrong, or sent in the wrong shape. This workflow inspects a bearer token end to end: decode it to read its claims, check the expiry against the current time, look at the raw Base64 segments when the decode looks off, mint a fresh test token with the right claims, and verify hashes and request headers. Nothing you paste — token, secret, or header — leaves your browser.

  1. 1

    Decode the token

    Split the JWT into header, payload, and signature and read every claim. Remember that decoding is not verification — the payload is readable by anyone, so never trust it without checking the signature server-side.

  2. 2

    Check expiry and timestamps

    Convert the exp and iat claims (Unix timestamps) to human-readable dates to confirm whether the token is simply expired or not yet valid.

  3. 3

    Inspect the Base64 segments

    When a token won’t decode, Base64url-decode each dot-separated segment by hand to find the malformed part — often a truncated copy-paste or a wrong-alphabet segment.

  4. 4

    Generate a test token

    Mint a signed JWT with the exact sub, scope, and expiry your endpoint expects, so you can reproduce and isolate the auth behaviour in a test.

  5. 5

    Verify hashes and signatures

    Compute a hash or an HMAC to check a signature, an API-key digest, or a webhook signing secret against what the server expects.

  6. 6

    Check the request headers

    Parse the raw request headers to confirm the Authorization header is well-formed, and generate the CORS headers a browser preflight needs.

Frequently asked questions

Other developer workflows