Structs§
- Agent
Token Claims - Claims embedded in agent short-lived JWTs.
- JtiBlocklist
- In-memory JTI blocklist for token revocation.
- Token
Config - Configuration for token issuance.
Constants§
- MAX_
TOKEN_ EXPIRY_ SECS - Maximum token expiry to prevent tokens with infinite-like lifetimes.
- MIN_
SIGNING_ SECRET_ LEN - Minimum signing secret length. HMAC-SHA256 requires at least 256 bits (32 bytes) for security.
Functions§
- issue_
token - Issue a short-lived JWT for an agent.