@djangocfg/api 2.1.266 → 2.1.268
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 +2 -1
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +2 -1
- package/dist/auth.mjs.map +1 -1
- package/package.json +2 -2
- package/src/auth/hooks/useAutoAuth.ts +6 -1
package/dist/auth.mjs
CHANGED
|
@@ -237,7 +237,8 @@ var useAutoAuth = /* @__PURE__ */ __name((options = {}) => {
|
|
|
237
237
|
const cleanQuery = Object.fromEntries(queryParams.entries());
|
|
238
238
|
delete cleanQuery.otp;
|
|
239
239
|
const queryString = new URLSearchParams(cleanQuery).toString();
|
|
240
|
-
|
|
240
|
+
const realPathname = typeof window !== "undefined" ? window.location.pathname : pathname;
|
|
241
|
+
router.replace(queryString ? `${realPathname}?${queryString}` : realPathname);
|
|
241
242
|
}
|
|
242
243
|
}, [pathname, queryParams, onOTPDetected, cleanupUrl, router, isReady]);
|
|
243
244
|
return {
|