Password friction and clunky OTP redirects routinely cause 10% to 25% login abandonment during e-commerce checkout and B2B SaaS onboarding. Yet early passkey rollouts often hurt usability too by cluttering login screens with confusing extra buttons or firing jarring modal OS popups before users even decide how to sign in.
Key Takeaways
- WebAuthn Conditional UI surfaces registered passkeys directly inside the browser's native username autofill menu, requiring zero extra buttons or modal interruptions.
- Combining autocomplete='username webauthn', an empty allowCredentials array, and mediation: 'conditional' enables true identifier-free one-tap biometric login.
- Always pair a background conditional WebAuthn request with an AbortController so clicking a manual 'Sign in with Passkey' button cleanly cancels the pending autofill promise.
- Supporting the WebAuthn Signal API keeps browser autofill lists synchronized by pruning deleted or revoked passkeys automatically.
Why Standalone Passkey Buttons and Aggressive Modals Stall Conversion
Early passwordless implementations treated passkeys as a separate authentication lane alongside 'Continue with Google' and 'Sign in with Email'. Returning shoppers and SaaS users rarely remember whether they enrolled a passkey on a particular site six months earlier. Clicking a standalone passkey button when no credential exists produces an intimidating OS dead-end dialog, while firing an automatic modal navigator.credentials.get() prompt on page load interrupts password-manager users and triggers browser gesture blocks on Safari and iOS.
WebAuthn Conditional Mediation—widely known as Conditional UI—resolves this UX tension completely. Instead of interrupting the user with a modal system dialog, the browser passively registers an assertion ceremony tied to the familiar username input field. When a passkey-enrolled user taps into the email box, their passkey appears seamlessly alongside saved autofill entries; a single click triggers FaceID, TouchID, or Windows Hello and completes authentication in roughly two seconds without typing an email, password, or OTP.
- Users without a passkey see zero error dialogs or unfamiliar WebAuthn prompts—the login form behaves identically to a normal identifier field.
- Returning passkey users bypass both email entry and password/MFA steps in one gesture directly from the browser autofill dropdown.
- Conditional UI works natively across Safari (iOS/macOS), Chrome/Edge (Windows/Android/macOS), and third-party passkey providers integrated via OS credential APIs.
- Eliminating separate 'Passkey Login' routes preserves a clean, single-form visual hierarchy on mobile checkout screens.
Implementing WebAuthn Conditional UI Correctly in Browsers
Implementing Conditional UI reliably requires four coordinated pieces across HTML, JavaScript, and your authentication backend. First, annotate the username or email input with autocomplete='username webauthn' (keeping webauthn as the final token so browsers recognize conditional passkey eligibility). Second, on page mount, verify feature support via PublicKeyCredential.isConditionalMediationAvailable() before fetching a discoverable authentication challenge from your server.
Third, call navigator.credentials.get() with mediation: 'conditional', an AbortController signal, and an empty allowCredentials list so the browser displays every discoverable resident passkey registered for your rpId. Fourth, if the user instead submits the form normally or clicks an explicit 'Use Hardware Security Key' button, invoke abortController.abort() first; otherwise, Chrome and Safari will throw an OperationError because two concurrent WebAuthn requests cannot run simultaneously in the same tab.
- Set autocomplete='username webauthn' on the visible identifier input; hidden or display:none inputs will not activate autofill prompts.
- Omit allowCredentials (or pass an empty array) on /oauth/passkey/auth-begin so discoverable resident passkeys resolve the user via response.userHandle.
- Maintain an AbortController reference on the conditional request and abort cleanly before initiating any modal WebAuthn ceremony or SPA route navigation.
- Convert Base64URL challenges and credential IDs carefully using URL-safe decoding without mutating padding assumptions across browsers.
let conditionalAbort: AbortController | null = null;
export async function initConditionalPasskeyAutofill(): Promise<void> {
if (
typeof window.PublicKeyCredential === "undefined" ||
typeof PublicKeyCredential.isConditionalMediationAvailable !== "function"
) {
return;
}
const available = await PublicKeyCredential.isConditionalMediationAvailable();
if (!available) return;
// Fetch discoverable assertion options (no email needed)
const beginRes = await fetch("https://auth.sso.id/oauth/passkey/auth-begin", {
method: "POST",
headers: { "Content-Type": "application/json" },
credentials: "include",
body: JSON.stringify({})
});
const options = await beginRes.json();
conditionalAbort = new AbortController();
try {
const credential = (await navigator.credentials.get({
mediation: "conditional",
signal: conditionalAbort.signal,
publicKey: {
challenge: base64UrlToUint8Array(options.challenge),
rpId: options.rpId,
timeout: options.timeout ?? 300000,
userVerification: options.userVerification ?? "preferred",
allowCredentials: []
}
})) as PublicKeyCredential | null;
if (!credential) return;
const assertion = credential.response as AuthenticatorAssertionResponse;
const verifyRes = await fetch("https://auth.sso.id/oauth/passkey/auth-complete", {
method: "POST",
headers: { "Content-Type": "application/json" },
credentials: "include",
body: JSON.stringify({
id: credential.id,
rawId: uint8ArrayToBase64Url(new Uint8Array(credential.rawId)),
type: credential.type,
response: {
authenticatorData: uint8ArrayToBase64Url(new Uint8Array(assertion.authenticatorData)),
clientDataJSON: uint8ArrayToBase64Url(new Uint8Array(assertion.clientDataJSON)),
signature: uint8ArrayToBase64Url(new Uint8Array(assertion.signature)),
userHandle: assertion.userHandle
? uint8ArrayToBase64Url(new Uint8Array(assertion.userHandle))
: null
}
})
});
if (verifyRes.ok) window.location.assign("/dashboard");
} catch (err) {
if ((err as DOMException)?.name !== "AbortError") {
console.warn("Conditional WebAuthn paused:", err);
}
}
}
export function cancelConditionalAutofill(): void {
conditionalAbort?.abort();
conditionalAbort = null;
}
Progressive Enhancement, Silent Signal API, and Zero-Disruption Fallbacks
Conditional UI shines because it degrades effortlessly across legacy browsers, embedded mobile WebViews, and unmanaged enterprise environments. If isConditionalMediationAvailable() returns false, the user simply types their email and continues into your standard identifier-first flow without seeing broken buttons or browser compatibility warnings. Remember that Conditional UI relies on discoverable credentials (resident keys), so passkey enrollment should explicitly specify authenticatorSelection.residentKey = 'required' (or 'preferred') whenever you want enrolled passkeys to appear in autofill.
One subtle post-launch UX bug occurs when a user deletes a passkey from your application's security settings, yet their OS password manager still displays the stale entry inside the autofill menu. Clicking that stale passkey produces a confusing server rejection. Adopting the WebAuthn Signal API—specifically PublicKeyCredential.signalUnknownCredential() and PublicKeyCredential.signalAllAcceptedCredentials()—lets your frontend inform the browser and credential provider whenever a passkey has been revoked server-side so stale autofill entries disappear automatically.
- Enroll passkeys with residentKey: 'required' or 'preferred' so browsers create discoverable credentials eligible for Conditional UI.
- Keep server-side conditional challenge TTLs slightly longer (3-5 minutes) than modal challenges because users may pause on the login screen before tapping the input.
- Invoke PublicKeyCredential.signalUnknownCredential({ rpId, credentialId }) whenever auth-complete reports a revoked credential ID to clean up browser autofill lists.
- Use consistent custom domain rpIds across checkout and account portals so passkeys enrolled during post-purchase account creation autofill seamlessly on return visits.
{
"conditionalAuthBeginPayload": {
"challenge": "a7c9e2f4b6d80123456789abcdef0123456789abcdef",
"rpId": "auth.shopfront.io",
"timeout": 300000,
"userVerification": "preferred",
"allowCredentials": []
},
"signalUnknownCredentialCall": {
"rpId": "auth.shopfront.io",
"credentialId": "cred_revoked_9920184712"
}
}
Because discoverable passkey login identifies the user from response.userHandle without a pre-submitted email, always verify that the returned userHandle matches the owner of the credentialId stored in your database and enforce constant-time rejection for deleted or suspended accounts.
Measuring Time-to-Authenticate and Checkout Conversion Lift
Product and growth teams adopt passkeys rapidly when authentication engineers instrument the login funnel like a checkout pipeline. Capture four baseline metrics before enabling Conditional UI: median time from login-page render to session issuance, password-reset click rate, MFA abandonment rate, and overall sign-in completion percentage segmented by iOS, Android, macOS, and Windows.
Across consumer e-commerce and B2B SaaS deployments, moving from password-plus-OTP to Conditional UI passkey autofill routinely cuts median login duration from 15-22 seconds down to 2-3 seconds, slashes forgotten-password resets by over 50%, and lifts repeat-buyer checkout completion meaningfully—while simultaneously upgrading account security to phishing-resistant WebAuthn.
- Track login_started -> autofill_passkey_selected -> auth_completed funnel rates per browser family to identify OS-specific regressions quickly.
- Measure password-reset ticket and email volume before and 30 days after enabling post-checkout passkey enrollment nudges.
- A/B test post-login passkey creation modals right after successful checkout or first sign-in, when user intent and trust peak.
- Monitor conditional assertion failure reasons (NotAllowedError, expired challenge, unknown credential) to tune challenge TTLs and Signal API cleanup.
How SSO.ID Accelerates Passkey Conversion with Hosted Conditional UI
SSO.ID v2 ships discoverable WebAuthn passkey ceremonies out of the box—supporting email-optional /oauth/passkey/auth-begin for Conditional UI autofill, customizable white-label Branding Studio login screens, and 1-click custom domains.
- ✓Email-optional POST /oauth/passkey/auth-begin natively supports discoverable Resident Key and Conditional UI browser autofill ceremonies.
- ✓Passkey-as-Primary (passkeyAsPrimary) turns your hosted login page into a single-tap biometric flow without maintaining custom WebAuthn cryptography code.
- ✓Live Branding Studio and Account Page Layout templates align login screens seamlessly with your checkout or SaaS brand identity.
- ✓Executive Dashboard analytics track daily login trends, failed attempts, and MFA/Passkey adoption rates across all connected applications.
Frequently Asked Questions
No. When you omit allowCredentials and use discoverable (resident) passkeys, the browser surfaces matching passkeys for your rpId as soon as the user taps or focuses the username input field—allowing complete identifier-free biometric sign-in.
You must abort the active conditional navigator.credentials.get() call via its AbortController before invoking a new modal navigator.credentials.get() call. Failing to abort the pending conditional promise causes browsers to reject the second call with an OperationError.
Use a 3-to-5-minute challenge TTL (180,000 to 300,000 ms) rather than a 60-second modal TTL, because users may leave a login tab open briefly before clicking the input field. Always refresh the challenge automatically if the page regains focus after expiry.