Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/neat-eels-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@gelatocloud/gasless": patch
---

refactor: use authorization header for auth
2 changes: 1 addition & 1 deletion src/bundler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const createGelatoBundlerClient = async (
const transport = http(endpoint, {
fetchOptions: {
headers: {
'X-API-Key': apiKey,
Authorization: `Bearer ${apiKey}`,
...parameters.httpTransportConfig?.fetchOptions?.headers
},
...parameters.httpTransportConfig?.fetchOptions
Expand Down
2 changes: 1 addition & 1 deletion src/relayer/evm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const createGelatoEvmRelayerClient = (
...parameters.httpTransportConfig,
fetchOptions: {
headers: {
'X-API-Key': apiKey,
Authorization: `Bearer ${apiKey}`,
...parameters.httpTransportConfig?.fetchOptions?.headers
},
...parameters.httpTransportConfig?.fetchOptions
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '0.0.9';
export const version = '0.0.11';