aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared-react/providers/trpc-provider.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/shared-react/providers/trpc-provider.tsx')
-rw-r--r--packages/shared-react/providers/trpc-provider.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/shared-react/providers/trpc-provider.tsx b/packages/shared-react/providers/trpc-provider.tsx
index 5df819bb..696bf195 100644
--- a/packages/shared-react/providers/trpc-provider.tsx
+++ b/packages/shared-react/providers/trpc-provider.tsx
@@ -8,6 +8,7 @@ import { api } from "../trpc";
interface Settings {
apiKey?: string;
address: string;
+ customHeaders?: Record<string, string>;
}
function getTRPCClient(settings: Settings) {
@@ -21,6 +22,7 @@ function getTRPCClient(settings: Settings) {
Authorization: settings.apiKey
? `Bearer ${settings.apiKey}`
: undefined,
+ ...settings.customHeaders,
};
},
transformer: superjson,