Skip to content

Commit

Permalink
chore: idempotency keys (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
cajubelt authored Mar 5, 2024
1 parent 75af5c7 commit 8aea0ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FiatConnectClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export function transferIn(
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${clientConfig.apiKey}`,
'Idempotency-Key': params.quoteId,
},
body: JSON.stringify(params),
})
Expand All @@ -168,6 +169,7 @@ export function transferOut(
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${clientConfig.apiKey}`,
'Idempotency-Key': params.quoteId,
},
body: JSON.stringify(params),
})
Expand Down

0 comments on commit 8aea0ba

Please sign in to comment.