{"version":"2.1.337","anchor":"session-identity-token-decode-with-identity-and-jwks-fil","canonical_anchor":"session-identity-token-decode-with-identity-and-jwks-fil","heading":"Token decoder can verify session identity tokens","tier":"internal","area":"Auth","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/session-identity-token-decode-with-identity-and-jwks-fil","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Token decoder can verify session identity tokens\n\nThe decode-token tool can now verify session identity tokens with --identity and a local key file passed with --jwks-file\n\n**Unclear.** It is not clear which command exposes decode-token or whether users can run it.\n\n**What**\n\nThe decode-token tool reads a sign-in token and checks that it is genuine. Previously it accepted only a few common signature types, checked against a key list fetched online. It can now verify session identity tokens.\n\n- `--identity` checks a session identity token. It requires an environment ID starting with `ccpool_`.\n\n- `--jwks-file` takes a path to a local file of keys to check against, instead of fetching them.\n\n- With no token given, it reads `$CLAUDE_CODE_SESSION_IDENTITY_TOKEN`.\n\n- `--no-verify` cannot be combined with `--identity` or `--jwks-file`.\n\nIt checks the token's type, issuer, role and intended audience, and accepts only the ML-DSA-65 signature type for these tokens. If the local key file has no key matching the token, it warns that the file may be out of date.\n\n**Why**\n\nThis is a debugging tool for checking session tokens, now with stricter checks on what a valid session identity token looks like.\n\n- Area: Auth\n- Names: `decode-token`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: no"}