import { browserSupportsWebAuthn } from './browserSupportsWebAuthn'; /** * Determine whether the browser can communicate with a built-in authenticator, like * Touch ID, Android fingerprint scanner, or Windows Hello. * * This method will _not_ be able to tell you the name of the platform authenticator. */ export async function platformAuthenticatorIsAvailable(): Promise { if (!browserSupportsWebAuthn()) { return false; } return PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable(); }