Module auth

Module auth 

Source
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