Middleware

Protect routes with auth-aware middleware.

The Axum integration includes middleware patterns for:

  • requiring an authenticated user
  • requiring a verified user

This keeps access control close to routing while leaving the auth logic inside the core service layer.