Expand description
Axum middleware for JWT authentication.
Extracts the Authorization: Bearer <token> header, validates the JWT,
and injects AuthUser into request extensions.
Structs§
- Auth
State - Shared state for the auth middleware.
Functions§
- auth_
middleware - Axum middleware: validate JWT and inject
AuthUser.