Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

WebAuthn Conditional UI

more options

Hello, when initiating a request for conditional mediation with webauthn I get the following error:

TypeError: 'conditional' (value of mediation) is not a valid value for enumeration CredentialMediationRequirement.

However when asking whether it's available with `await window.PublicKeyCredential.isConditionalMediationAvailable()` it does return true. Is this a bug?

Hello, when initiating a request for conditional mediation with webauthn I get the following error: TypeError: 'conditional' (value of mediation) is not a valid value for enumeration CredentialMediationRequirement. However when asking whether it's available with `await window.PublicKeyCredential.isConditionalMediationAvailable()` it does return true. Is this a bug?

Все ответы (1)

more options

Hmm, I see it in the source for Firefox 119 at https://searchfox.org/mozilla-release/source/dom/webidl/CredentialManagement.webidl#45

Do you have a CodePen or JSFiddle or other page that demonstrates the problem?