- From: Matthew Miller via GitHub <noreply@w3.org>
- Date: Fri, 26 Jun 2026 18:47:27 +0000
- To: public-webauthn@w3.org
After a good chat with @kenrb today, and thinking through [the potential API ergonomic benefits to **requiring** `mediation: conditional` when a WebAuthn call may _not_ show UI](https://github.com/w3c/webauthn/issues/2144#issuecomment-4812263816) depending on what the browser decides, can we tweak this feature to require that `mediation: conditional` be set too?
So then triggering immediate mediation ("immediate UI" now?) turns into this...
```ts
const cred = await navigator.credentials.get({
mediation: "conditional", // <-- added
uiMode: "immediate"
publicKey: {
challenge: ...,
rpId: 'example.com',
allowCredentials: [],
},
});
```
...such that `mediation: conditional` tells the RP that UI may ultimately **not** be shown, then `uiMode: immediate` determines the logic by which the browser will decide to show UI.
--
GitHub Notification of comment by MasterKale
Please view or discuss this issue at https://github.com/w3c/webauthn/pull/2291#issuecomment-4812471436 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 26 June 2026 18:47:28 UTC