@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/components.js
CHANGED
|
@@ -1414,9 +1414,6 @@ function InsforgeCallback({
|
|
|
1414
1414
|
return;
|
|
1415
1415
|
}
|
|
1416
1416
|
const accessToken = searchParams.get("access_token");
|
|
1417
|
-
const userId = searchParams.get("user_id");
|
|
1418
|
-
const email = searchParams.get("email");
|
|
1419
|
-
const name = searchParams.get("name");
|
|
1420
1417
|
if (!accessToken) {
|
|
1421
1418
|
const errorMsg = "no_token";
|
|
1422
1419
|
if (onError) {
|
|
@@ -1432,10 +1429,7 @@ function InsforgeCallback({
|
|
|
1432
1429
|
return;
|
|
1433
1430
|
}
|
|
1434
1431
|
const result = await handleAuthCallback({
|
|
1435
|
-
accessToken
|
|
1436
|
-
userId: userId || void 0,
|
|
1437
|
-
email: email || void 0,
|
|
1438
|
-
name: name || void 0
|
|
1432
|
+
accessToken
|
|
1439
1433
|
});
|
|
1440
1434
|
if (!result.success) {
|
|
1441
1435
|
const errorMsg = result.error || "authentication_failed";
|