@lumiapassport/ui-kit 1.16.2 → 1.16.3
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/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +5 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5638,7 +5638,7 @@ function Header() {
|
|
|
5638
5638
|
// package.json
|
|
5639
5639
|
var package_default = {
|
|
5640
5640
|
name: "@lumiapassport/ui-kit",
|
|
5641
|
-
version: "1.16.
|
|
5641
|
+
version: "1.16.3",
|
|
5642
5642
|
description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
|
|
5643
5643
|
type: "module",
|
|
5644
5644
|
main: "./dist/index.cjs",
|
|
@@ -7005,23 +7005,16 @@ function Social(props) {
|
|
|
7005
7005
|
const { user } = result;
|
|
7006
7006
|
if (normalizedProviderId === "x" || normalizedProviderId === "twitter") {
|
|
7007
7007
|
console.log("[AuthModal] X OAuth completed, user authenticated via callback");
|
|
7008
|
-
|
|
7009
|
-
const verifyUrl = addProjectIdToUrl(`${tssUrl2}/api/auth/verify`);
|
|
7010
|
-
const verifyResponse = await fetch(verifyUrl, {
|
|
7011
|
-
method: "GET",
|
|
7012
|
-
credentials: "include"
|
|
7013
|
-
});
|
|
7014
|
-
if (!verifyResponse.ok) {
|
|
7008
|
+
if (!user) {
|
|
7015
7009
|
setAlert({
|
|
7016
7010
|
title: "Authentication Failed",
|
|
7017
|
-
message: "
|
|
7011
|
+
message: "No user data received from X authentication"
|
|
7018
7012
|
});
|
|
7019
7013
|
setIsLoading(false);
|
|
7020
7014
|
return;
|
|
7021
7015
|
}
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
await finalizeSocialLogin(loginResponse2, "x");
|
|
7016
|
+
console.log("[AuthModal] X login data:", user);
|
|
7017
|
+
await finalizeSocialLogin(user, "x");
|
|
7025
7018
|
return;
|
|
7026
7019
|
}
|
|
7027
7020
|
if (!user) {
|