[webauthn] Pull Request: Add new isPlatformPasskeyAuthenticatorAvailable() method

timcappalli has just submitted a new pull request for https://github.com/w3c/webauthn:

== Add new isPlatformPasskeyAuthenticatorAvailable() method ==
The current developer guidance to relying parties for whether they can offer passkeys to users is to call `isUVPAA()` and `isConditionalMediationAvailable()`. One returns a boolean, the other a promise. This is already complex . This also doesn't tell the whole story. For example, in Chrome and Edge on Ubuntu, users can currently create a syncable passkey on another device such as a phone or tablet using Cross-Device Authentication (hybrid transport). There is no way for a relying party to know this today, and passkeys won't be offered to users. This is a similar case with smart displays and other devices such as kiosks.

This method is designed to be a very simple way for the majority of developers to detect whether they can offer passkeys to users.

For more advanced use cases, `isUVPAA()` remains available, and an upcoming PR will introduce a more advanced feature detection method for things like specific transports (e.g. is just hybrid available) and CTAP2 security keys with PIN support.

See https://github.com/w3c/webauthn/pull/1901


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 8 June 2023 03:39:10 UTC