mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
[PM-4935] Change authenticator-attachment to platform (#7946)
This commit is contained in:
@@ -59,7 +59,7 @@ export class WebauthnUtils {
|
|||||||
id: result.credentialId,
|
id: result.credentialId,
|
||||||
rawId: Fido2Utils.stringToBuffer(result.credentialId),
|
rawId: Fido2Utils.stringToBuffer(result.credentialId),
|
||||||
type: "public-key",
|
type: "public-key",
|
||||||
authenticatorAttachment: "cross-platform",
|
authenticatorAttachment: "platform",
|
||||||
response: {
|
response: {
|
||||||
clientDataJSON: Fido2Utils.stringToBuffer(result.clientDataJSON),
|
clientDataJSON: Fido2Utils.stringToBuffer(result.clientDataJSON),
|
||||||
attestationObject: Fido2Utils.stringToBuffer(result.attestationObject),
|
attestationObject: Fido2Utils.stringToBuffer(result.attestationObject),
|
||||||
@@ -127,7 +127,7 @@ export class WebauthnUtils {
|
|||||||
userHandle: Fido2Utils.stringToBuffer(result.userHandle),
|
userHandle: Fido2Utils.stringToBuffer(result.userHandle),
|
||||||
} as AuthenticatorAssertionResponse,
|
} as AuthenticatorAssertionResponse,
|
||||||
getClientExtensionResults: () => ({}),
|
getClientExtensionResults: () => ({}),
|
||||||
authenticatorAttachment: "cross-platform",
|
authenticatorAttachment: "platform",
|
||||||
} as PublicKeyCredential;
|
} as PublicKeyCredential;
|
||||||
|
|
||||||
// Modify prototype chains to fix `instanceof` calls.
|
// Modify prototype chains to fix `instanceof` calls.
|
||||||
|
|||||||
Reference in New Issue
Block a user