Overview
grantex verify is a single command that lets any developer paste a grant token and instantly see everything about it: who issued it, scopes, expiry, delegation chain, revocation status. Works as a standalone tool — no Grantex account needed.
Usage
Output
Default (Pretty)
JSON Output (--json)
Verbose (--verbose)
Includes everything above plus raw JWT header and claims:
Error States
Expired token:Options
| Flag | Description |
|---|---|
--verbose | Show full JWT header and claims JSON |
--json | Output machine-readable JSON (for scripting) |
--check-revocation | Make a network call to check live revocation status |
--jwks <url> | Verify against a specific JWKS URL |
--jwks-file <path> | Verify offline using a local JWKS JSON file |
--file <path> | Read token from a file instead of CLI argument |
--stdin | Read token from stdin (for piping) |
Related Commands
| Command | Description |
|---|---|
grantex decode <token> | Decode JWT without signature verification (like jwt.io) |
grantex audit inspect <file> | View entries in an offline audit log (JSONL) |
grantex audit verify <file> | Verify hash chain integrity of an audit log |
grantex registry lookup <did> | Look up an organization in the Trust Registry |
grantex init gemma | Scaffold a new Gemma 4 + Grantex project |
Exit Codes
| Code | Meaning |
|---|---|
0 | Token is valid |
1 | Token is invalid (expired, bad signature, malformed) |
2 | Usage error (missing arguments) |