@insforge/react 0.2.6 → 0.2.8
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.js +1 -7
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +1 -7
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1763,9 +1763,6 @@ function InsforgeCallback({
|
|
|
1763
1763
|
return;
|
|
1764
1764
|
}
|
|
1765
1765
|
const accessToken = searchParams.get("access_token");
|
|
1766
|
-
const userId = searchParams.get("user_id");
|
|
1767
|
-
const email = searchParams.get("email");
|
|
1768
|
-
const name = searchParams.get("name");
|
|
1769
1766
|
if (!accessToken) {
|
|
1770
1767
|
const errorMsg = "no_token";
|
|
1771
1768
|
if (onError) {
|
|
@@ -1781,10 +1778,7 @@ function InsforgeCallback({
|
|
|
1781
1778
|
return;
|
|
1782
1779
|
}
|
|
1783
1780
|
const result = await handleAuthCallback({
|
|
1784
|
-
accessToken
|
|
1785
|
-
userId: userId || void 0,
|
|
1786
|
-
email: email || void 0,
|
|
1787
|
-
name: name || void 0
|
|
1781
|
+
accessToken
|
|
1788
1782
|
});
|
|
1789
1783
|
if (!result.success) {
|
|
1790
1784
|
const errorMsg = result.error || "authentication_failed";
|