blob: 605bb678470d5307797e087ea335b1258a05fb85 (
plain)
1
2
3
4
5
6
7
8
9
|
/**
* Determine if the browser is capable of Webauthn
*/
export default function supportsWebauthn(): boolean {
return (
window?.PublicKeyCredential !== undefined
&& typeof window.PublicKeyCredential === 'function'
);
}
|