Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
fix: Type error
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Feb 12, 2024
1 parent df7a094 commit 88ebe64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vdk/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {supaglueProxyLink} from './supaglueProxyLink'

export type RouterContext = {
nangoSecretKey: string
supaglueApiKey: string
supaglueApiKey?: string
headers: Headers
providerByName: Record<string, Provider>
}
Expand Down Expand Up @@ -55,7 +55,8 @@ export const remoteProcedure = publicProcedure.use(
})

const supaglueLink = supaglueProxyLink({
apiKey: ctx.headers.get('x-api-key') ?? ctx.supaglueApiKey,
// TODO: Should this be required?
apiKey: ctx.headers.get('x-api-key') ?? ctx.supaglueApiKey ?? '',
customerId,
providerName,
})
Expand Down

0 comments on commit 88ebe64

Please sign in to comment.