Skip to main content

Module token

Module token 

Source

Structs§

AgentTokenClaims
Claims embedded in agent short-lived JWTs.
JtiBlocklist
In-memory JTI blocklist for token revocation.
TokenConfig
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.