We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64cc65c commit 798ee78Copy full SHA for 798ee78
1 file changed
packages/clerk-js/src/core/clerk.ts
@@ -74,9 +74,9 @@ import type {
74
AuthenticateWithSolanaParams,
75
BillingNamespace,
76
CheckoutSignalValue,
77
- Clerk as ClerkInterface,
78
ClerkAPIError,
79
ClerkAuthenticateWithWeb3Params,
+ Clerk as ClerkInterface,
80
ClerkOptions,
81
ClientJSONSnapshot,
82
ClientResource,
@@ -1457,6 +1457,15 @@ export class Clerk implements ClerkInterface {
1457
return;
1458
}
1459
1460
+ if (noUserExists(this)) {
1461
+ if (this.#instanceType === 'development') {
1462
+ throw new ClerkRuntimeError(warnings.cannotOpenCheckout, {
1463
+ code: CANNOT_RENDER_USER_MISSING_ERROR_CODE,
1464
+ });
1465
+ }
1466
+ return;
1467
1468
+
1469
this.assertComponentsReady(this.#clerkUI);
1470
const component = 'ConfigureSSO';
1471
void this.#clerkUI
0 commit comments