@volr/react 0.1.76 → 0.1.77
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/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9768,6 +9768,15 @@ function useAutoRecover({
|
|
|
9768
9768
|
const recover = async () => {
|
|
9769
9769
|
try {
|
|
9770
9770
|
setIsLoading(true);
|
|
9771
|
+
if (typeof window !== "undefined") {
|
|
9772
|
+
const params = new URLSearchParams(window.location.search);
|
|
9773
|
+
const code = params.get("code");
|
|
9774
|
+
if (code?.startsWith("volr_auth_")) {
|
|
9775
|
+
console.log("[Provider] OAuth callback detected, skipping auto-recover");
|
|
9776
|
+
setIsLoading(false);
|
|
9777
|
+
return;
|
|
9778
|
+
}
|
|
9779
|
+
}
|
|
9771
9780
|
if (!client.getRefreshToken()) {
|
|
9772
9781
|
console.log("[Provider] No refresh token found, skipping auto-recover");
|
|
9773
9782
|
setIsLoading(false);
|