pub async fn require_auth(
__arg0: State<Arc<AuthConfig>>,
request: Request,
next: Next,
) -> ResponseExpand description
Axum middleware that validates JWT bearer tokens on protected routes.
If auth is disabled (no secret configured), requests pass through.
If auth is enabled, a valid Authorization: Bearer <token> is required.