pub async fn auth_middleware( __arg0: State<AppState>, request: Request, next: Next, ) -> Result<Response, ApiError>
Authentication middleware