@matchain/matchid-sdk-react 0.1.9 → 0.1.11

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.mjs CHANGED
@@ -1049,7 +1049,8 @@ function useWallet() {
1049
1049
  did: overview?.did?.split(":")[2] || ""
1050
1050
  });
1051
1051
  } else {
1052
- getSign();
1052
+ await recoveryWallet("ethereum", "user_passcode_recovery_key");
1053
+ await getSign();
1053
1054
  }
1054
1055
  });
1055
1056
  };
@@ -1087,7 +1088,8 @@ function useWallet() {
1087
1088
  did: overview?.did?.split(":")[2] || ""
1088
1089
  });
1089
1090
  } else {
1090
- getSign();
1091
+ await recoveryWallet("ethereum", "user_passcode_recovery_key");
1092
+ await getSign();
1091
1093
  }
1092
1094
  });
1093
1095
  };
@@ -1363,8 +1365,6 @@ function useWalletInit({
1363
1365
  if (existingIframe.src !== endpoints.login + "wallet") {
1364
1366
  setWalletInited(false);
1365
1367
  existingIframe.src = endpoints.login + "wallet";
1366
- } else {
1367
- setWalletInited(true);
1368
1368
  }
1369
1369
  }
1370
1370
  }