@insforge/react 0.7.1 → 0.7.3

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.
@@ -1644,13 +1644,22 @@ function SignIn({ onError, ...uiProps }) {
1644
1644
  throw new Error(result.error);
1645
1645
  }
1646
1646
  const { user, accessToken, redirectTo } = result;
1647
+ console.log("[SignIn] Login success:", {
1648
+ hasUser: !!user,
1649
+ userId: user?.id,
1650
+ hasAccessToken: !!accessToken,
1651
+ redirectTo,
1652
+ redirectUrl,
1653
+ currentLocation: window.location.href
1654
+ });
1647
1655
  if (user) {
1648
1656
  const finalUrl = new URL(redirectTo || redirectUrl || "", window.location.origin);
1649
1657
  finalUrl.searchParams.set("access_token", accessToken);
1650
1658
  finalUrl.searchParams.set("user_id", user.id);
1651
1659
  finalUrl.searchParams.set("email", user.email);
1652
1660
  finalUrl.searchParams.set("name", user.name);
1653
- window.location.href = finalUrl.toString();
1661
+ console.log("[SignIn] \u{1F504} About to redirect to:", finalUrl.toString());
1662
+ console.log("[SignIn] \u26A0\uFE0F REDIRECT BLOCKED FOR DEBUGGING");
1654
1663
  }
1655
1664
  } catch (err) {
1656
1665
  const errorMessage = err instanceof Error ? err.message : "Sign in failed";