@insforge/react 0.7.4-dev.5 → 0.7.4
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 +1 -10
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +1 -10
- package/dist/components.js.map +1 -1
- package/dist/index.cjs +5 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -44
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1644,22 +1644,13 @@ 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
|
-
});
|
|
1655
1647
|
if (user) {
|
|
1656
1648
|
const finalUrl = new URL(redirectTo || redirectUrl || "", window.location.origin);
|
|
1657
1649
|
finalUrl.searchParams.set("access_token", accessToken);
|
|
1658
1650
|
finalUrl.searchParams.set("user_id", user.id);
|
|
1659
1651
|
finalUrl.searchParams.set("email", user.email);
|
|
1660
1652
|
finalUrl.searchParams.set("name", user.name);
|
|
1661
|
-
|
|
1662
|
-
console.log("[SignIn] \u26A0\uFE0F REDIRECT BLOCKED FOR DEBUGGING");
|
|
1653
|
+
window.location.href = finalUrl.toString();
|
|
1663
1654
|
}
|
|
1664
1655
|
} catch (err) {
|
|
1665
1656
|
const errorMessage = err instanceof Error ? err.message : "Sign in failed";
|