@clerk/backend 3.2.7-canary.v20260407011244 → 3.2.7

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.
@@ -194,7 +194,7 @@ var require_dist = __commonJS({
194
194
  // src/constants.ts
195
195
  var API_URL = "https://api.clerk.com";
196
196
  var API_VERSION = "v1";
197
- var USER_AGENT = `${"@clerk/backend"}@${"3.2.7-canary.v20260407011244"}`;
197
+ var USER_AGENT = `${"@clerk/backend"}@${"3.2.7"}`;
198
198
  var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
199
199
  var SUPPORTED_BAPI_VERSION = "2025-11-10";
200
200
  var Attributes = {
@@ -539,6 +539,7 @@ var AuthenticateContext = class {
539
539
  this.frontendApi = pk.frontendApi;
540
540
  }
541
541
  initHeaderValues() {
542
+ this.method = this.clerkRequest.method;
542
543
  this.tokenInHeader = this.parseAuthorizationHeader(this.getHeader(constants.Headers.Authorization));
543
544
  this.origin = this.getHeader(constants.Headers.Origin);
544
545
  this.host = this.getHeader(constants.Headers.Host);
@@ -5264,7 +5265,10 @@ var HandshakeService = class {
5264
5265
  * @returns boolean indicating if the request is eligible for handshake
5265
5266
  */
5266
5267
  isRequestEligibleForHandshake() {
5267
- const { accept, secFetchDest } = this.authenticateContext;
5268
+ const { accept, method, secFetchDest } = this.authenticateContext;
5269
+ if (method !== "GET") {
5270
+ return false;
5271
+ }
5268
5272
  if (secFetchDest === "document" || secFetchDest === "iframe") {
5269
5273
  return true;
5270
5274
  }
@@ -5838,7 +5842,7 @@ var authenticateRequest = (async (request, options) => {
5838
5842
  }
5839
5843
  }
5840
5844
  }
5841
- const isRequestEligibleForMultiDomainSync = authenticateContext.isSatellite && authenticateContext.secFetchDest === "document";
5845
+ const isRequestEligibleForMultiDomainSync = authenticateContext.isSatellite && authenticateContext.secFetchDest === "document" && authenticateContext.method === "GET";
5842
5846
  const syncedParam = authenticateContext.clerkUrl.searchParams.get(constants.QueryParameters.ClerkSynced);
5843
5847
  const needsSync = syncedParam === constants.ClerkSyncStatus.NeedsSync;
5844
5848
  const syncCompleted = syncedParam === constants.ClerkSyncStatus.Completed;
@@ -5942,6 +5946,7 @@ var authenticateRequest = (async (request, options) => {
5942
5946
  token: authenticateContext.sessionTokenInCookie
5943
5947
  });
5944
5948
  const shouldForceHandshakeForCrossDomain = !authenticateContext.isSatellite && // We're on primary
5949
+ authenticateContext.method === "GET" && // Only GET navigations (POST form submissions set sec-fetch-dest: document too)
5945
5950
  authenticateContext.secFetchDest === "document" && // Document navigation
5946
5951
  authenticateContext.isCrossOriginReferrer() && // Came from different domain
5947
5952
  !authenticateContext.isKnownClerkReferrer() && // Not from Clerk accounts portal or FAPI
@@ -6245,4 +6250,4 @@ export {
6245
6250
  debugRequestState,
6246
6251
  createAuthenticateRequest
6247
6252
  };
6248
- //# sourceMappingURL=chunk-KA63WWXP.mjs.map
6253
+ //# sourceMappingURL=chunk-PE6FBFTQ.mjs.map