@phantom/browser-sdk 0.3.7 → 0.3.9

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/index.js CHANGED
@@ -630,6 +630,7 @@ var BrowserAuthProvider = class {
630
630
  try {
631
631
  const walletId = this.urlParamsAccessor.getParam("wallet_id");
632
632
  const sessionId = this.urlParamsAccessor.getParam("session_id");
633
+ const accountDerivationIndex = this.urlParamsAccessor.getParam("selected_account_index");
633
634
  const error = this.urlParamsAccessor.getParam("error");
634
635
  const errorDescription = this.urlParamsAccessor.getParam("error_description");
635
636
  if (error) {
@@ -673,11 +674,13 @@ var BrowserAuthProvider = class {
673
674
  sessionStorage.removeItem("phantom-auth-context");
674
675
  debug.info(DebugCategory.PHANTOM_CONNECT_AUTH, "Successfully resumed auth from redirect", {
675
676
  walletId,
676
- sessionId
677
+ sessionId,
678
+ accountDerivationIndex: accountDerivationIndex ? parseInt(accountDerivationIndex) : void 0
677
679
  });
678
680
  return {
679
681
  walletId,
680
- userInfo: context
682
+ userInfo: context,
683
+ accountDerivationIndex: accountDerivationIndex ? parseInt(accountDerivationIndex) : void 0
681
684
  };
682
685
  } catch (error) {
683
686
  sessionStorage.removeItem("phantom-auth-context");
package/dist/index.mjs CHANGED
@@ -583,6 +583,7 @@ var BrowserAuthProvider = class {
583
583
  try {
584
584
  const walletId = this.urlParamsAccessor.getParam("wallet_id");
585
585
  const sessionId = this.urlParamsAccessor.getParam("session_id");
586
+ const accountDerivationIndex = this.urlParamsAccessor.getParam("selected_account_index");
586
587
  const error = this.urlParamsAccessor.getParam("error");
587
588
  const errorDescription = this.urlParamsAccessor.getParam("error_description");
588
589
  if (error) {
@@ -626,11 +627,13 @@ var BrowserAuthProvider = class {
626
627
  sessionStorage.removeItem("phantom-auth-context");
627
628
  debug.info(DebugCategory.PHANTOM_CONNECT_AUTH, "Successfully resumed auth from redirect", {
628
629
  walletId,
629
- sessionId
630
+ sessionId,
631
+ accountDerivationIndex: accountDerivationIndex ? parseInt(accountDerivationIndex) : void 0
630
632
  });
631
633
  return {
632
634
  walletId,
633
- userInfo: context
635
+ userInfo: context,
636
+ accountDerivationIndex: accountDerivationIndex ? parseInt(accountDerivationIndex) : void 0
634
637
  };
635
638
  } catch (error) {
636
639
  sessionStorage.removeItem("phantom-auth-context");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phantom/browser-sdk",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "Browser SDK for Phantom Wallet with unified interface",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@phantom/base64url": "^0.1.0",
32
- "@phantom/browser-injected-sdk": "^0.0.9",
33
- "@phantom/client": "^0.1.9",
32
+ "@phantom/browser-injected-sdk": "^0.0.10",
33
+ "@phantom/client": "^0.1.11",
34
34
  "@phantom/constants": "^0.0.3",
35
- "@phantom/embedded-provider-core": "^0.1.8",
36
- "@phantom/indexed-db-stamper": "^0.1.4",
35
+ "@phantom/embedded-provider-core": "^0.1.10",
36
+ "@phantom/indexed-db-stamper": "^0.1.5",
37
37
  "@phantom/parsers": "^0.0.7",
38
38
  "axios": "^1.10.0",
39
39
  "bs58": "^6.0.0",