diff --git a/login/webauthn-authenticate.ftl b/login/webauthn-authenticate.ftl index e3adcc2..886342a 100644 --- a/login/webauthn-authenticate.ftl +++ b/login/webauthn-authenticate.ftl @@ -76,6 +76,12 @@ if (userVerification !== 'not specified') publicKey.userVerification = userVerification; + if (window.PublicKeyCredential === undefined || typeof window.PublicKeyCredential !== "function") { + $("#error").val("WebAuthn is not supported by this Browser"); + $("#webauth").submit(); + return; + } + navigator.credentials.get({publicKey}) .then((result) => { window.result = result;