18F/identity-idp

View on GitHub
app/javascript/packages/webauthn/is-webauthn-platform-authenticator-available.ts

Summary

Maintainability
A
0 mins
Test Coverage
export type IsWebauthnPlatformAvailable = () => Promise<boolean>;

const isWebauthnPlatformAuthenticatorAvailable: IsWebauthnPlatformAvailable = async () =>
  !!(await window.PublicKeyCredential?.isUserVerifyingPlatformAuthenticatorAvailable());

export default isWebauthnPlatformAuthenticatorAvailable;