@lumiapassport/ui-kit 1.4.13 → 1.4.15

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/README.md CHANGED
@@ -41,11 +41,6 @@ function App() {
41
41
  <LumiaPassportProvider
42
42
  config={{
43
43
  projectId: 'your-project-id', // Get from Lumia Passport Dashboard
44
- services: {
45
- tssUrl: 'https://api.lumiapassport.com/tss',
46
- bundlerUrl: 'https://api.lumiapassport.com/rundler',
47
- shareVaultUrl: 'https://api.lumiapassport.com/vault',
48
- }
49
44
  }}
50
45
  >
51
46
  <YourApp />
@@ -80,14 +75,6 @@ That's it! The `ConnectWalletButton` provides a complete authentication UI with
80
75
  config={{
81
76
  projectId: 'your-project-id', // Required
82
77
 
83
- // Optional: Service URLs (defaults to production)
84
- services: {
85
- tssUrl: 'https://api.lumiapassport.com/tss',
86
- bundlerUrl: 'https://api.lumiapassport.com/rundler',
87
- shareVaultUrl: 'https://api.lumiapassport.com/vault',
88
- iframeUrl: 'https://auth.lumiapassport.com',
89
- },
90
-
91
78
  // Optional: Custom RPC and network
92
79
  rpcUrl: 'https://beam-rpc.lumia.org',
93
80
  explorerUrl: 'https://beam-explorer.lumia.org',
@@ -14,7 +14,7 @@
14
14
  <meta http-equiv="X-Content-Type-Options" content="nosniff" />
15
15
  <meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
16
16
 
17
- <title>Lumia Passport Secure Wallet - iframe version 1.4.13</title>
17
+ <title>Lumia Passport Secure Wallet - iframe version 1.4.15</title>
18
18
 
19
19
  <!-- Styles will be injected by build process -->
20
20
  <style>
@@ -3600,7 +3600,7 @@ var BackupManager = class {
3600
3600
  };
3601
3601
 
3602
3602
  // src/iframe/main.ts
3603
- var IFRAME_VERSION = "1.4.13";
3603
+ var IFRAME_VERSION = "1.4.15";
3604
3604
  var IframeWallet = class {
3605
3605
  constructor() {
3606
3606
  console.log("=".repeat(60));
@@ -3700,7 +3700,9 @@ var IframeWallet = class {
3700
3700
  const { projectId } = message.data;
3701
3701
  const { messageId } = message;
3702
3702
  console.log(`[iframe] SDK_AUTH: projectId=${projectId}`);
3703
- if (!origin.startsWith("https://") && !origin.startsWith("http://localhost")) {
3703
+ const isLocalhost = origin.startsWith("http://localhost:") || origin.startsWith("http://127.0.0.1:");
3704
+ const isHttps = origin.startsWith("https://");
3705
+ if (!isHttps && !isLocalhost) {
3704
3706
  throw new Error("Only HTTPS origins are allowed (or localhost for dev)");
3705
3707
  }
3706
3708
  const sessionToken = this.sessionManager.createSession(projectId, origin);