Expand description
Authentication middleware for JWT and API keys.
This module provides tower middleware for authenticating requests using:
- JWT tokens (via the Authorization header)
- API keys (via custom headers)
Structs§
- Claims
- JWT claims structure - can be extended based on needs
Functions§
- api_
key_ auth_ middleware - API Key authentication middleware
- jwt_
auth_ middleware - JWT authentication middleware