pub async fn auth_middleware( __arg0: State<Arc<AppState>>, request: Request<Body>, next: Next, ) -> Response
Middleware that enforces JWT auth when a secret is configured.