@volr/react 0.1.76 → 0.1.78

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 CHANGED
@@ -9792,6 +9792,15 @@ function useAutoRecover({
9792
9792
  const recover = async () => {
9793
9793
  try {
9794
9794
  setIsLoading(true);
9795
+ if (typeof window !== "undefined") {
9796
+ const params = new URLSearchParams(window.location.search);
9797
+ const code = params.get("code");
9798
+ if (code?.startsWith("volr_auth_")) {
9799
+ console.log("[Provider] OAuth callback detected, skipping auto-recover");
9800
+ setIsLoading(false);
9801
+ return;
9802
+ }
9803
+ }
9795
9804
  if (!client.getRefreshToken()) {
9796
9805
  console.log("[Provider] No refresh token found, skipping auto-recover");
9797
9806
  setIsLoading(false);