Skip to content

Commit ec1a243

Browse files
authored
fix: publishableKey check when parsing options (#331)
1 parent 4b0486f commit ec1a243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/seam/connect/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
type Headers = Record<string, string>
3131

3232
export const getAuthHeaders = (options: Options): Headers => {
33-
if ('publishableKey' in options) {
33+
if ('publishableKey' in options && options.publishableKey !== null) {
3434
return getAuthHeadersForPublishableKey(options.publishableKey)
3535
}
3636

0 commit comments

Comments
 (0)