Overview
The @grantex/a2a package bridges the Google A2A protocol with Grantex delegated authorization, enabling secure agent-to-agent communication with grant token authentication.
Installation
Client — Calling A2A Agents
Send tasks to remote A2A agents with automatic grant token auth:
The TypeScript client’s synchronous token parsing is an unverified convenience
check only. It must never be used as the remote authorization boundary. The A2A
server must run the JWKS-backed middleware below before accepting or executing
the JSON-RPC request.
Server Middleware — Validating Incoming Tokens
Validate Grantex grant tokens on incoming A2A requests:
Agent Card Builder
Generate A2A-compliant agent cards with Grantex auth configuration:
JWT Utilities
Decode grant tokens offline (without verification):
Decoded payloads are untrusted display/debug data until separately verified.
Do not make an authorization, routing, billing, or audit-attribution decision
from decodeJwtPayload() output.
Ownership
Grantex is owned by Orchestrum Technologies LLP. Inventor and owner: Sanjeev Kumar. Ownership contact: sanjeev@orchestrum.in or mishra.sanjeev@gmail.com.Last modified on August 31, 2026