@sparkvault/sdk-js 8.8.4 → 8.9.0

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.
@@ -6900,7 +6900,14 @@ class IdentityRenderer {
6900
6900
  void this.launchPasskeyVerify(true);
6901
6901
  return;
6902
6902
  }
6903
- if (methods.length === 1) {
6903
+ // A single enabled method normally auto-fires so the recipient skips a
6904
+ // redundant one-item picker. But when the identity is fixed by an invite,
6905
+ // auto-firing an OTP would silently send a code (another SMS/email) the
6906
+ // instant the recipient opens the link, with no consent and re-sent on every
6907
+ // reload. In that case render the picker as a one-tap consent gate instead;
6908
+ // the recipient taps to request the code. (Passkey auto-route above still
6909
+ // applies — a biometric prompt costs nothing and can be dismissed.)
6910
+ if (methods.length === 1 && !this.isIdentityFixed()) {
6904
6911
  this.handleMethodSelect(methods[0]);
6905
6912
  return;
6906
6913
  }