From 9fc88f8c73d6412a0a349b3b379c68820561079f Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Thu, 15 May 2025 13:04:13 -0700 Subject: [PATCH] fix: publishableKey check when parsing options --- src/lib/seam/connect/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/seam/connect/auth.ts b/src/lib/seam/connect/auth.ts index 517487c9..6d77b324 100644 --- a/src/lib/seam/connect/auth.ts +++ b/src/lib/seam/connect/auth.ts @@ -30,7 +30,7 @@ import { type Headers = Record export const getAuthHeaders = (options: Options): Headers => { - if ('publishableKey' in options) { + if ('publishableKey' in options && options.publishableKey !== null) { return getAuthHeadersForPublishableKey(options.publishableKey) }