diff --git a/packages/http/src/webauthn.ts b/packages/http/src/webauthn.ts index cb91614d5..072c83483 100644 --- a/packages/http/src/webauthn.ts +++ b/packages/http/src/webauthn.ts @@ -147,16 +147,9 @@ export async function getWebAuthnAttestation( return toInternalAttestation(res.toJSON()); } -// For additional details see https://web.dev/articles/passkey-form-autofill#feature-detection, https://github.com/w3c/webauthn/wiki/Explainer:-WebAuthn-Conditional-UI +// `hasWebAuthnSupport` checks for barebones webauthn support. +// For additional details and granular settings, see: +// https://web.dev/articles/passkey-form-autofill#feature-detection, https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential async function hasWebAuthnSupport(): Promise { - if ( - window.PublicKeyCredential && - PublicKeyCredential.isConditionalMediationAvailable - ) { - const isCMA = await PublicKeyCredential.isConditionalMediationAvailable(); - - return isCMA; - } - - return false; + return !!window.PublicKeyCredential; }