SimpleWebAuthn icon indicating copy to clipboard operation
SimpleWebAuthn copied to clipboard

Add new `isPasskeyPlatformAuthenticatorAvailable()`

Open MasterKale opened this issue 2 years ago • 5 comments

Describe the issue

https://github.com/w3c/webauthn/pull/1901 is adding a new PublicKeyCredential.isPasskeyPlatformAuthenticatorAvailable() to offer RP's a signal that users will likely be able to use a passkey via the local platform authenticator, or via hybrid authentication.

Reproduction Steps

N/A

Expected behavior

N/A

Code Samples + WebAuthn Options and Responses

N/A

Dependencies

N/A

SimpleWebAuthn Libraries

N/A

Additional context

N/A

MasterKale avatar Jul 12 '23 20:07 MasterKale

Update: this method is being removed from WebAuthn in https://github.com/w3c/webauthn/pull/1936, but there's no reason I couldn't still add a method of this name to this project using the proposed getClientCapabilities() API that's being proposed in https://github.com/w3c/webauthn/pull/1923.

MasterKale avatar Aug 03 '23 19:08 MasterKale

Is the return value going to be undefined when passkeyPlatformAuthenticator is not present in getClientCapabilities()?

bschoenmaeckers avatar Apr 17 '24 08:04 bschoenmaeckers