demo · v131

PublicKeyCredential.getClientCapabilities()

A single call returns the WebAuthn capabilities of the client: conditional UI, hybrid transport, large blob storage, PRF extension, etc. Replaces a stack of one-off isUserVerifyingPlatformAuthenticatorAvailable-style calls.



  

the api

const caps = await PublicKeyCredential.getClientCapabilities();
console.log(caps);
// { conditionalCreate: true, conditionalGet: true,
//   hybridTransport: true, passkeyPlatformAuthenticator: true,
//   userVerifyingPlatformAuthenticator: true, ... }

see also