@insforge/react 0.7.1 → 0.7.2
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/components.cjs +10 -1
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +10 -1
- package/dist/components.js.map +1 -1
- package/dist/index.cjs +44 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +44 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components.cjs
CHANGED
|
@@ -1650,13 +1650,22 @@ function SignIn({ onError, ...uiProps }) {
|
|
|
1650
1650
|
throw new Error(result.error);
|
|
1651
1651
|
}
|
|
1652
1652
|
const { user, accessToken, redirectTo } = result;
|
|
1653
|
+
console.log("[SignIn] Login success:", {
|
|
1654
|
+
hasUser: !!user,
|
|
1655
|
+
userId: user?.id,
|
|
1656
|
+
hasAccessToken: !!accessToken,
|
|
1657
|
+
redirectTo,
|
|
1658
|
+
redirectUrl,
|
|
1659
|
+
currentLocation: window.location.href
|
|
1660
|
+
});
|
|
1653
1661
|
if (user) {
|
|
1654
1662
|
const finalUrl = new URL(redirectTo || redirectUrl || "", window.location.origin);
|
|
1655
1663
|
finalUrl.searchParams.set("access_token", accessToken);
|
|
1656
1664
|
finalUrl.searchParams.set("user_id", user.id);
|
|
1657
1665
|
finalUrl.searchParams.set("email", user.email);
|
|
1658
1666
|
finalUrl.searchParams.set("name", user.name);
|
|
1659
|
-
|
|
1667
|
+
console.log("[SignIn] \u{1F504} About to redirect to:", finalUrl.toString());
|
|
1668
|
+
console.log("[SignIn] \u26A0\uFE0F REDIRECT BLOCKED FOR DEBUGGING");
|
|
1660
1669
|
}
|
|
1661
1670
|
} catch (err) {
|
|
1662
1671
|
const errorMessage = err instanceof Error ? err.message : "Sign in failed";
|