diff options
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/shared-react/providers/trpc-provider.tsx | 2 |
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, |
