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:
Anders Åberg 2025-09-18 10:32:25 +02:00 committed by GitHub
parent ba817f0389
commit 3a2bee9444
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -251,8 +251,7 @@ export class Fido2ClientService<ParentWindowReference>
clientDataJSON: Fido2Utils.bufferToString(clientDataJSONBytes),
publicKey: Fido2Utils.bufferToString(makeCredentialResult.publicKey),
publicKeyAlgorithm: makeCredentialResult.publicKeyAlgorithm,
transports:
params.rp.id === "google.com" ? ["internal", "usb", "hybrid"] : ["internal", "hybrid"],
transports: ["internal", "hybrid"],
extensions: { credProps },
};
}