Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit feea55a

Browse files
Merge pull request #1207 from MutinyWallet/zeus-rev-share
Add auth tokens to Flow
2 parents 81cd86d + 724bf3d commit feea55a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mutiny-core/src/lsp/voltage.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ impl LspClient {
154154
) -> Result<(PublicKey, String), MutinyError> {
155155
let request = http_client
156156
.get(format!("{}{}", url, GET_INFO_PATH))
157+
.header("x-auth-token", "mutiny")
157158
.build()
158159
.map_err(|e| {
159160
log_error!(logger, "Error building connection info request: {e}");
@@ -287,6 +288,7 @@ impl Lsp for LspClient {
287288
.http_client
288289
.post(format!("{}{}", &self.url, PROPOSAL_PATH))
289290
.json(&payload)
291+
.header("x-auth-token", "mutiny")
290292
.build()
291293
.map_err(|_| MutinyError::LspGenericError)?;
292294

@@ -344,6 +346,7 @@ impl Lsp for LspClient {
344346
.http_client
345347
.post(format!("{}{}", &self.url, FEE_PATH))
346348
.json(&fee_request)
349+
.header("x-auth-token", "mutiny")
347350
.build()
348351
.map_err(|_| MutinyError::LspGenericError)?;
349352
let response: reqwest::Response = utils::fetch_with_timeout(&self.http_client, request)

0 commit comments

Comments
 (0)