diff --git a/keepassxc-browser/content/passkeys-utils.js b/keepassxc-browser/content/passkeys-utils.js index 40cb044c..cc98e7bf 100644 --- a/keepassxc-browser/content/passkeys-utils.js +++ b/keepassxc-browser/content/passkeys-utils.js @@ -66,6 +66,10 @@ kpxcPasskeysUtils.buildCredentialCreationOptions = function(pkOptions) { const publicKey = {}; publicKey.attestation = pkOptions.attestation || 'none'; publicKey.authenticatorSelection = pkOptions.authenticatorSelection || { userVerification: 'preferred' }; + if (!publicKey.authenticatorSelection.userVerification) { + publicKey.authenticatorSelection.userVerification = 'preferred'; + } + publicKey.challenge = arrayBufferToBase64(pkOptions.challenge); publicKey.extensions = pkOptions.extensions; publicKey.pubKeyCredParams = pkOptions.pubKeyCredParams;