@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.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
|
-
|
|
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 {
|