@clerk/chrome-extension 3.1.89-snapshot.v20260930211104 → 3.1.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -472,7 +472,7 @@ var BrowserStorageCache = createBrowserStorageCache();
472
472
  var clerk;
473
473
  noRhc.Clerk.sdkMetadata = {
474
474
  name: "@clerk/chrome-extension",
475
- version: "3.1.89-snapshot.v20260930211104"
475
+ version: "3.1.89"
476
476
  };
477
477
  function createClerkClient({
478
478
  __experimental_syncHostListener = false,
@@ -529,7 +529,7 @@ function createClerkClient2(opts) {
529
529
  }
530
530
  noRhc.Clerk.sdkMetadata = {
531
531
  name: "@clerk/chrome-extension",
532
- version: "3.1.89-snapshot.v20260930211104"
532
+ version: "3.1.89"
533
533
  };
534
534
  const clerk2 = new noRhc.Clerk(opts.publishableKey, {});
535
535
  const originalLoad = clerk2.load.bind(clerk2);
@@ -472,7 +472,7 @@ var BrowserStorageCache = createBrowserStorageCache();
472
472
  var clerk;
473
473
  noRhc.Clerk.sdkMetadata = {
474
474
  name: "@clerk/chrome-extension",
475
- version: "3.1.89-snapshot.v20260930211104"
475
+ version: "3.1.89"
476
476
  };
477
477
  function createClerkClient({
478
478
  __experimental_syncHostListener = false,
@@ -529,7 +529,7 @@ function createClerkClient2(opts) {
529
529
  }
530
530
  noRhc.Clerk.sdkMetadata = {
531
531
  name: "@clerk/chrome-extension",
532
- version: "3.1.89-snapshot.v20260930211104"
532
+ version: "3.1.89"
533
533
  };
534
534
  const clerk2 = new noRhc.Clerk(opts.publishableKey, {});
535
535
  const originalLoad = clerk2.load.bind(clerk2);
package/dist/cjs/index.js CHANGED
@@ -5344,7 +5344,7 @@ function isVersionCompatible(version2, bounds) {
5344
5344
  return checkVersionAgainstBounds(parsed, bounds);
5345
5345
  }
5346
5346
 
5347
- // ../react/dist/ClerkProvider-tiDiXgAh.mjs
5347
+ // ../react/dist/ClerkProvider-Bujo1_a7.mjs
5348
5348
  var ClerkLoaded = ({ children }) => {
5349
5349
  useAssertWrappedByClerkProvider$1("ClerkLoaded");
5350
5350
  if (!useIsomorphicClerkContext().loaded) return null;
@@ -5897,7 +5897,7 @@ var StateProxy = class {
5897
5897
  if (typeof globalThis.__BUILD_DISABLE_RHC__ === "undefined") globalThis.__BUILD_DISABLE_RHC__ = false;
5898
5898
  var SDK_METADATA = {
5899
5899
  name: "@clerk/react",
5900
- version: "6.17.4-snapshot.v20260930211104",
5900
+ version: "6.17.4",
5901
5901
  environment: process.env.NODE_ENV
5902
5902
  };
5903
5903
  var _status, _domain, _proxyUrl, _publishableKey, _eventBus, _stateProxy, _a15, _instance, _IsomorphicClerk_instances, waitForClerkJS_fn;
@@ -6610,6 +6610,10 @@ var IsomorphicClerk = (_a15 = class {
6610
6610
  });
6611
6611
  else this.premountMethodCalls.set("handleRedirectCallback", callback);
6612
6612
  };
6613
+ this.__internal_resolvePendingProtectCheck = async (flow) => {
6614
+ var _a18, _b;
6615
+ await ((_b = (_a18 = this.clerkjs) == null ? void 0 : _a18.__internal_resolvePendingProtectCheck) == null ? void 0 : _b.call(_a18, flow));
6616
+ };
6613
6617
  this.__internal_resumeAfterProtectCheck = async (params, customNavigate) => {
6614
6618
  const callback = () => {
6615
6619
  var _a18;
@@ -7211,9 +7215,16 @@ function HandleSSOCallback(props) {
7211
7215
  const hasRun = React2.useRef(false);
7212
7216
  React2.useEffect(() => {
7213
7217
  (async () => {
7214
- var _a17, _b, _c;
7218
+ var _a17, _b, _c, _d;
7215
7219
  if (!clerk2.loaded || hasRun.current) return;
7216
7220
  hasRun.current = true;
7221
+ const intent = new URLSearchParams(window.location.search).get("intent");
7222
+ const flow = intent === "signIn" || intent === "signUp" ? intent : void 0;
7223
+ try {
7224
+ await ((_a17 = clerk2.__internal_resolvePendingProtectCheck) == null ? void 0 : _a17.call(clerk2, flow));
7225
+ } catch {
7226
+ return navigateToSignIn();
7227
+ }
7217
7228
  if (signIn.status === "complete") {
7218
7229
  await signIn.finalize({ navigate: async (...params) => {
7219
7230
  navigateToApp(...params);
@@ -7230,7 +7241,7 @@ function HandleSSOCallback(props) {
7230
7241
  }
7231
7242
  return navigateToSignIn();
7232
7243
  }
7233
- if (signIn.status === "needs_first_factor" && !((_a17 = signIn.supportedFirstFactors) == null ? void 0 : _a17.every((f) => f.strategy === "enterprise_sso"))) return navigateToSignIn();
7244
+ if (signIn.status === "needs_first_factor" && !((_b = signIn.supportedFirstFactors) == null ? void 0 : _b.every((f) => f.strategy === "enterprise_sso"))) return navigateToSignIn();
7234
7245
  if (signIn.isTransferable) {
7235
7246
  await signUp.create({ transfer: true });
7236
7247
  if (signUp.status === "complete") {
@@ -7249,7 +7260,7 @@ function HandleSSOCallback(props) {
7249
7260
  }
7250
7261
  if (signIn.status === "needs_second_factor" || signIn.status === "needs_new_password") return navigateToSignIn();
7251
7262
  if (signIn.existingSession || signUp.existingSession) {
7252
- const sessionId = ((_b = signIn.existingSession) == null ? void 0 : _b.sessionId) || ((_c = signUp.existingSession) == null ? void 0 : _c.sessionId);
7263
+ const sessionId = ((_c = signIn.existingSession) == null ? void 0 : _c.sessionId) || ((_d = signUp.existingSession) == null ? void 0 : _d.sessionId);
7253
7264
  if (sessionId) {
7254
7265
  await clerk2.setActive({
7255
7266
  session: sessionId,
@@ -7474,7 +7485,7 @@ var BrowserStorageCache = createBrowserStorageCache();
7474
7485
  var clerk;
7475
7486
  noRhc.Clerk.sdkMetadata = {
7476
7487
  name: "@clerk/chrome-extension",
7477
- version: "3.1.89-snapshot.v20260930211104"
7488
+ version: "3.1.89"
7478
7489
  };
7479
7490
  function createClerkClient({
7480
7491
  __experimental_syncHostListener = false,