Skip to main content

Module claims

Module claims 

Source
Expand description

NHI JWT claims.

Structs§

NhiClaims
Claims carried by an AgentVisor AI NHI token.

Enums§

Audience
The aud claim per RFC 7519 §4.1.3: “a StringOrURI value or an array of StringOrURI”. Mainstream IdPs (Okta, Auth0, Azure AD, Cognito) emit the array form for multi-audience apps ("aud": ["agentvisor", "some-other-svc"]). Accepting only the string form silently locks the operator out at go-live with an invalid type: sequence, expected string error deep inside jsonwebtoken::decode, before our validator’s aud check runs.

Constants§

MAX_TTL_SECS
Hard TTL ceiling for NHI tokens: 15 minutes (brief Module D).