Skip to content

Commit

Permalink
allow passing custom headers (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeTamanoir committed Oct 30, 2024
1 parent a514e8d commit 8edff12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kilnfi/sdk",
"version": "3.1.7",
"version": "3.1.8",
"autor": "Kiln <[email protected]> (https://kiln.fi)",
"license": "BUSL-1.1",
"description": "JavaScript sdk for Kiln API",
Expand Down
5 changes: 4 additions & 1 deletion src/kiln.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ export class Kiln {
const client = createClient<paths>({
...clientOptions,
baseUrl,
headers: apiToken ? { Authorization: `Bearer ${apiToken}` } : {},
headers: {
...(apiToken ? { Authorization: `Bearer ${apiToken}` } : {}),
...clientOptions?.headers,
},
querySerializer: { array: { explode: false, style: 'form' } },
});
this.fireblocks = new FireblocksService(client);
Expand Down

0 comments on commit 8edff12

Please sign in to comment.