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