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
3 changes: 2 additions & 1 deletion src/data-pump/flowcore-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export function getFlowcoreClient(auth: FlowcoreDataPumpAuth, baseUrlOverride?:
const client = "apiKey" in auth
? new FlowcoreClientWithMetrics({
apiKey: auth.apiKey,
apiKeyId: auth.apiKeyId as string,
// apiKeyId is guaranteed to be set — FlowcoreDataPump.create() parses it from fc_ keys
apiKeyId: auth.apiKeyId!,
})
: new FlowcoreClientWithMetrics(auth)

Expand Down
3 changes: 2 additions & 1 deletion src/data-pump/notifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ export class FlowcoreNotifier {
if ("apiKey" in this.options.auth) {
return {
apiKey: this.options.auth.apiKey,
apiKeyId: this.options.auth.apiKeyId as string,
// apiKeyId is guaranteed to be set — FlowcoreDataPump.create() parses it from fc_ keys
apiKeyId: this.options.auth.apiKeyId!,
}
}
const getBearerToken = this.options.auth.getBearerToken
Expand Down
Loading