diff --git a/.changeset/ten-taxis-decide.md b/.changeset/ten-taxis-decide.md new file mode 100644 index 0000000000..6adfd9b398 --- /dev/null +++ b/.changeset/ten-taxis-decide.md @@ -0,0 +1,5 @@ +--- +"@clerk/clerk-js": patch +--- + +fix(clerk-js): Rethrow errors if not requires_captcha during init diff --git a/packages/clerk-js/src/core/clerk.ts b/packages/clerk-js/src/core/clerk.ts index b1cfd5d586..eb91cc89b5 100644 --- a/packages/clerk-js/src/core/clerk.ts +++ b/packages/clerk-js/src/core/clerk.ts @@ -1898,6 +1898,8 @@ export class Clerk implements ClerkInterface { await initEnvironmentPromise; initComponents(); await initClient(); + } else { + throw e; } });