pub async fn auth_middleware(
__arg0: State<AuthState>,
req: Request,
next: Next,
) -> Result<Response, AuthMiddlewareError>Expand description
Authentication middleware
Validates JWT token or API key from Authorization header and injects authenticated user into request extensions.