From 724bf3d7393c6f08b7c83b8c8896dd1fa0bb694a Mon Sep 17 00:00:00 2001 From: benthecarman Date: Fri, 7 Jun 2024 12:42:14 -0500 Subject: [PATCH] Add auth tokens to Flow --- mutiny-core/src/lsp/voltage.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mutiny-core/src/lsp/voltage.rs b/mutiny-core/src/lsp/voltage.rs index e676c7596..1261b2c65 100644 --- a/mutiny-core/src/lsp/voltage.rs +++ b/mutiny-core/src/lsp/voltage.rs @@ -154,6 +154,7 @@ impl LspClient { ) -> Result<(PublicKey, String), MutinyError> { let request = http_client .get(format!("{}{}", url, GET_INFO_PATH)) + .header("x-auth-token", "mutiny") .build() .map_err(|e| { log_error!(logger, "Error building connection info request: {e}"); @@ -287,6 +288,7 @@ impl Lsp for LspClient { .http_client .post(format!("{}{}", &self.url, PROPOSAL_PATH)) .json(&payload) + .header("x-auth-token", "mutiny") .build() .map_err(|_| MutinyError::LspGenericError)?; @@ -344,6 +346,7 @@ impl Lsp for LspClient { .http_client .post(format!("{}{}", &self.url, FEE_PATH)) .json(&fee_request) + .header("x-auth-token", "mutiny") .build() .map_err(|_| MutinyError::LspGenericError)?; let response: reqwest::Response = utils::fetch_with_timeout(&self.http_client, request)