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