mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Prevent Illegal Invokcation on getPublicKey/getPublicKeyAlgorithm (#2323)
Prevent Illegal Invocation on getPublicKey/getPublicKeyAlgorithm
This commit is contained in:
parent
5efa5155a7
commit
928ed65e51
1 changed files with 3 additions and 2 deletions
|
|
@ -31,10 +31,11 @@ const createAttestationResponse = function(publicKey) {
|
|||
attestationObject: kpxcBase64ToArrayBuffer(publicKey.response.attestationObject),
|
||||
clientDataJSON: kpxcBase64ToArrayBuffer(publicKey.response.clientDataJSON),
|
||||
getAuthenticatorData: () => kpxcBase64ToArrayBuffer(publicKey.response?.authenticatorData),
|
||||
getPublicKey: () => null,
|
||||
getPublicKeyAlgorithm: () => publicKey.response?.publicKeyAlgorithm,
|
||||
getTransports: () => [ 'internal' ]
|
||||
};
|
||||
|
||||
return Object.setPrototypeOf(response, AuthenticatorAttestationResponse.prototype);
|
||||
return Object.setPrototypeOf(response, AuthenticatorAttestationResponse.prototype);
|
||||
};
|
||||
|
||||
// Wraps response to AuthenticatorAssertionResponse object
|
||||
|
|
|
|||
Loading…
Reference in a new issue