1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-20 21:01:29 +01:00

[EC-598] fix: bug in result mapping

This commit is contained in:
Andreas Coroiu 2023-04-18 11:29:03 +02:00
parent e876ba5421
commit 9b2f8b9462
No known key found for this signature in database
GPG Key ID: E70B5FFC81DFEC1A

View File

@ -61,7 +61,7 @@ export class WebauthnUtils {
attestationObject: Fido2Utils.stringToBuffer(result.attestationObject),
getAuthenticatorData(): ArrayBuffer {
return Fido2Utils.stringToBuffer(this.result.authData);
return Fido2Utils.stringToBuffer(result.authData);
},
getPublicKey(): ArrayBuffer {
@ -69,11 +69,11 @@ export class WebauthnUtils {
},
getPublicKeyAlgorithm(): number {
return this.result.publicKeyAlgorithm;
return result.publicKeyAlgorithm;
},
getTransports(): string[] {
return this.result.transports;
return result.transports;
},
} as AuthenticatorAttestationResponse,
getClientExtensionResults: () => ({}),
@ -123,7 +123,7 @@ export class WebauthnUtils {
userHandle: Fido2Utils.stringToBuffer(result.userHandle),
} as AuthenticatorAssertionResponse,
getClientExtensionResults: () => ({}),
authenticatorAttachment: "hybrid",
authenticatorAttachment: "cross-platform",
} as PublicKeyCredential;
// Modify prototype chains to fix `instanceof` calls.