1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-16 10:45:20 +01:00

[EC-598] fix: temporarily remove origin check

This commit is contained in:
Andreas Coroiu 2023-01-10 10:48:22 +01:00
parent 64f60aa870
commit 29c438a851
No known key found for this signature in database
GPG Key ID: E70B5FFC81DFEC1A

View File

@ -10,7 +10,6 @@ import {
CredentialRegistrationResult,
Fido2Service as Fido2ServiceAbstraction,
NoCredentialFoundError,
OriginMismatchError,
} from "../../abstractions/fido2/fido2.service.abstraction";
import { CipherType } from "../../enums/cipherType";
import { Utils } from "../../misc/utils";
@ -133,9 +132,10 @@ export class Fido2Service implements Fido2ServiceAbstraction {
throw new NoCredentialFoundError();
}
if (credential.origin !== params.origin) {
throw new OriginMismatchError();
}
// TODO: Google doesn't work with this. Look into how we're supposed to check this
// if (credential.origin !== params.origin) {
// throw new OriginMismatchError();
// }
await this.fido2UserInterfaceService.confirmCredential(credential.credentialId.encoded);
} else {