mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Set userVerification to default value if not found
This commit is contained in:
parent
0a2b461d84
commit
c4a578e90b
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue