mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
Remove fido2 google.com workaround (#16347)
Updates the transports property in the credential creation response to only include "internal" and "hybrid" transports.
This commit is contained in:
@@ -251,8 +251,7 @@ export class Fido2ClientService<ParentWindowReference>
|
|||||||
clientDataJSON: Fido2Utils.bufferToString(clientDataJSONBytes),
|
clientDataJSON: Fido2Utils.bufferToString(clientDataJSONBytes),
|
||||||
publicKey: Fido2Utils.bufferToString(makeCredentialResult.publicKey),
|
publicKey: Fido2Utils.bufferToString(makeCredentialResult.publicKey),
|
||||||
publicKeyAlgorithm: makeCredentialResult.publicKeyAlgorithm,
|
publicKeyAlgorithm: makeCredentialResult.publicKeyAlgorithm,
|
||||||
transports:
|
transports: ["internal", "hybrid"],
|
||||||
params.rp.id === "google.com" ? ["internal", "usb", "hybrid"] : ["internal", "hybrid"],
|
|
||||||
extensions: { credProps },
|
extensions: { credProps },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user