Skip to content

Commit 8b3b763

Browse files
committed
fix(clerk-react): Do not throw missing key error in isomorphicClerk.load
As we already check for the key existence further down the different flows
1 parent 776c42f commit 8b3b763

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/react/src/isomorphicClerk.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import type {
3030
HeadlessBrowserClerkConstrutor,
3131
IsomorphicClerkOptions,
3232
} from './types';
33-
import { errorThrower, inClientSide, isConstructor, loadScript } from './utils';
33+
import { inClientSide, isConstructor, loadScript } from './utils';
3434

3535
export interface Global {
3636
Clerk?: HeadlessBrowserClerk | BrowserClerk;
@@ -97,10 +97,6 @@ export default class IsomorphicClerk {
9797
return;
9898
}
9999

100-
if (!this.publishableKey && !this.frontendApi) {
101-
errorThrower.throwMissingFrontendApiOrPublishableKeyError();
102-
}
103-
104100
// Store frontendAPI value on window as a fallback. This value can be used as a
105101
// fallback during ClerkJS hot loading in case ClerkJS fails to find the
106102
// "data-clerk-frontend-api" attribute on its script tag.

0 commit comments

Comments
 (0)