app/javascript/packages/webauthn/is-webauthn-platform-authenticator-available.ts
export type IsWebauthnPlatformAvailable = () => Promise<boolean>;
const isWebauthnPlatformAuthenticatorAvailable: IsWebauthnPlatformAvailable = async () =>
!!(await window.PublicKeyCredential?.isUserVerifyingPlatformAuthenticatorAvailable());
export default isWebauthnPlatformAuthenticatorAvailable;