@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/iframe/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<meta http-equiv="X-Content-Type-Options" content="nosniff" />
|
|
16
16
|
<meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
|
|
17
17
|
|
|
18
|
-
<title>Lumia Passport Secure Wallet - iframe version 1.16.
|
|
18
|
+
<title>Lumia Passport Secure Wallet - iframe version 1.16.3</title>
|
|
19
19
|
|
|
20
20
|
<!-- Styles will be injected by build process -->
|
|
21
21
|
<style>
|
package/dist/iframe/main.js
CHANGED
|
@@ -4411,7 +4411,7 @@ var SigningManager = class extends TokenRefreshApiClient {
|
|
|
4411
4411
|
};
|
|
4412
4412
|
|
|
4413
4413
|
// src/iframe/main.ts
|
|
4414
|
-
var IFRAME_VERSION = "1.16.
|
|
4414
|
+
var IFRAME_VERSION = "1.16.3";
|
|
4415
4415
|
var IframeWallet = class {
|
|
4416
4416
|
constructor() {
|
|
4417
4417
|
console.log("=".repeat(60));
|
package/dist/index.cjs
CHANGED
|
@@ -5690,7 +5690,7 @@ function Header() {
|
|
|
5690
5690
|
// package.json
|
|
5691
5691
|
var package_default = {
|
|
5692
5692
|
name: "@lumiapassport/ui-kit",
|
|
5693
|
-
version: "1.16.
|
|
5693
|
+
version: "1.16.3",
|
|
5694
5694
|
description: "React UI components and hooks for Lumia Passport authentication and Account Abstraction",
|
|
5695
5695
|
type: "module",
|
|
5696
5696
|
main: "./dist/index.cjs",
|
|
@@ -7057,23 +7057,16 @@ function Social(props) {
|
|
|
7057
7057
|
const { user } = result;
|
|
7058
7058
|
if (normalizedProviderId === "x" || normalizedProviderId === "twitter") {
|
|
7059
7059
|
console.log("[AuthModal] X OAuth completed, user authenticated via callback");
|
|
7060
|
-
|
|
7061
|
-
const verifyUrl = addProjectIdToUrl(`${tssUrl2}/api/auth/verify`);
|
|
7062
|
-
const verifyResponse = await fetch(verifyUrl, {
|
|
7063
|
-
method: "GET",
|
|
7064
|
-
credentials: "include"
|
|
7065
|
-
});
|
|
7066
|
-
if (!verifyResponse.ok) {
|
|
7060
|
+
if (!user) {
|
|
7067
7061
|
setAlert({
|
|
7068
7062
|
title: "Authentication Failed",
|
|
7069
|
-
message: "
|
|
7063
|
+
message: "No user data received from X authentication"
|
|
7070
7064
|
});
|
|
7071
7065
|
setIsLoading(false);
|
|
7072
7066
|
return;
|
|
7073
7067
|
}
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
await finalizeSocialLogin(loginResponse2, "x");
|
|
7068
|
+
console.log("[AuthModal] X login data:", user);
|
|
7069
|
+
await finalizeSocialLogin(user, "x");
|
|
7077
7070
|
return;
|
|
7078
7071
|
}
|
|
7079
7072
|
if (!user) {
|