From 05c5de9201ac94ca889d4b65a9aab2946beb2474 Mon Sep 17 00:00:00 2001 From: Nikos Douvlis Date: Thu, 19 Dec 2024 17:48:32 +0200 Subject: [PATCH] fix(clerk-js): Rethrow errors if not requires_captcha during init (#4812) --- .changeset/ten-taxis-decide.md | 5 +++++ packages/clerk-js/src/core/clerk.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/ten-taxis-decide.md 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; } });