@lumiapassport/ui-kit 1.3.1 → 1.3.2

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.
@@ -3797,6 +3797,12 @@ var IframeWallet = class {
3797
3797
  origin
3798
3798
  );
3799
3799
  console.log(`[iframe] \u2705 User authenticated: ${userId}`);
3800
+ if (this.storage.hasKeyshare(userId)) {
3801
+ console.log(`[iframe] \u2139\uFE0F User has existing keyshare, sending WALLET_READY`);
3802
+ this.sendWalletReadyStatus(userId, origin);
3803
+ } else {
3804
+ console.log(`[iframe] \u2139\uFE0F User needs DKG or restore to create/recover keyshare`);
3805
+ }
3800
3806
  }
3801
3807
  async handleStartDKG(message, origin) {
3802
3808
  const { sessionToken, userId, projectId, accessToken } = message.data;