@lumiapassport/ui-kit 1.16.3 → 1.16.4
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 +23 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -11
- 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.4</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.4";
|
|
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.4",
|
|
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",
|
|
@@ -6969,17 +6969,29 @@ function Social(props) {
|
|
|
6969
6969
|
const iframeManager = getIframeManager2();
|
|
6970
6970
|
const finalizeSocialLogin = async (rawLoginResponse, providerKey, userData) => {
|
|
6971
6971
|
let loginResponse2 = await normalizeSocialLoginResponse(rawLoginResponse, providerKey, userData);
|
|
6972
|
-
const
|
|
6973
|
-
|
|
6972
|
+
const existingAccessToken = import_auth3.jwtTokenManager.getAccessToken();
|
|
6973
|
+
const existingRefreshToken = import_auth3.jwtTokenManager.getRefreshToken();
|
|
6974
|
+
if (existingAccessToken && existingRefreshToken && !loginResponse2.accessToken) {
|
|
6975
|
+
console.log("[AuthModal] Using tokens already stored by iframe-manager");
|
|
6976
|
+
loginResponse2 = {
|
|
6977
|
+
...loginResponse2,
|
|
6978
|
+
accessToken: existingAccessToken,
|
|
6979
|
+
refreshToken: existingRefreshToken
|
|
6980
|
+
};
|
|
6981
|
+
}
|
|
6974
6982
|
if (!loginResponse2.accessToken || !loginResponse2.refreshToken) {
|
|
6975
|
-
const
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
+
const tokenExchangeConfig = authConfig?.tokenExchange || provider?.tokenExchange;
|
|
6984
|
+
loginResponse2 = await enrichLoginResponseWithTokens(loginResponse2, providerKey, tokenExchangeConfig);
|
|
6985
|
+
if (!loginResponse2.accessToken || !loginResponse2.refreshToken) {
|
|
6986
|
+
const refreshTokens = await fetchTokensFromRefreshEndpoint();
|
|
6987
|
+
if (refreshTokens) {
|
|
6988
|
+
loginResponse2 = {
|
|
6989
|
+
...loginResponse2,
|
|
6990
|
+
accessToken: refreshTokens.accessToken,
|
|
6991
|
+
refreshToken: refreshTokens.refreshToken,
|
|
6992
|
+
expiresIn: refreshTokens.expiresIn
|
|
6993
|
+
};
|
|
6994
|
+
}
|
|
6983
6995
|
}
|
|
6984
6996
|
}
|
|
6985
6997
|
if (!loginResponse2) {
|