1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-01 04:37:40 +02:00

[PM-4935] Change authenticator-attachment to platform (#7946)

This commit is contained in:
Andreas Coroiu 2024-02-21 09:32:20 +01:00 committed by GitHub
parent d2cdc6fe8b
commit 8f08ba3307
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ export class WebauthnUtils {
id: result.credentialId,
rawId: Fido2Utils.stringToBuffer(result.credentialId),
type: "public-key",
authenticatorAttachment: "cross-platform",
authenticatorAttachment: "platform",
response: {
clientDataJSON: Fido2Utils.stringToBuffer(result.clientDataJSON),
attestationObject: Fido2Utils.stringToBuffer(result.attestationObject),
@ -127,7 +127,7 @@ export class WebauthnUtils {
userHandle: Fido2Utils.stringToBuffer(result.userHandle),
} as AuthenticatorAssertionResponse,
getClientExtensionResults: () => ({}),
authenticatorAttachment: "cross-platform",
authenticatorAttachment: "platform",
} as PublicKeyCredential;
// Modify prototype chains to fix `instanceof` calls.