Expand description
JWT authentication and authorization. JWT authentication middleware and token management.
Structs§
- Authenticated
Agent - Claims
- JWT claims embedded in every token.
- Token
Request - Request body for the token generation endpoint.
Functions§
- auth_
middleware - Middleware that enforces JWT auth when a secret is configured.
- create_
token - Create a signed JWT for the given agent.
- generate_
token - validate_
token - Validate a JWT and return the embedded claims.