@djangocfg/api 2.1.267 → 2.1.270

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.
package/dist/auth.cjs CHANGED
@@ -298,7 +298,8 @@ var useAutoAuth = /* @__PURE__ */ __name((options = {}) => {
298
298
  const cleanQuery = Object.fromEntries(queryParams.entries());
299
299
  delete cleanQuery.otp;
300
300
  const queryString = new URLSearchParams(cleanQuery).toString();
301
- router.push(queryString ? `${pathname}?${queryString}` : pathname);
301
+ const realPathname = typeof window !== "undefined" ? window.location.pathname : pathname;
302
+ router.replace(queryString ? `${realPathname}?${queryString}` : realPathname);
302
303
  }
303
304
  }, [pathname, queryParams, onOTPDetected, cleanupUrl, router, isReady]);
304
305
  return {