1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

[EC-598] feat: use browser as fallback when vault does not contain requested credential

This commit is contained in:
Andreas Coroiu
2022-12-16 15:25:47 +01:00
parent 9dd1a65b29
commit 0225093c11

View File

@@ -107,8 +107,6 @@ export class Fido2Service implements Fido2ServiceAbstraction {
}
async assertCredential(params: CredentialAssertParams): Promise<CredentialAssertResult> {
const presence = await this.fido2UserInterfaceService.verifyPresence();
let credential: BitCredential | undefined;
if (params.allowedCredentialIds && params.allowedCredentialIds.length > 0) {
@@ -127,6 +125,8 @@ export class Fido2Service implements Fido2ServiceAbstraction {
throw new OriginMismatchError();
}
const presence = await this.fido2UserInterfaceService.verifyPresence();
const encoder = new TextEncoder();
const clientData = encoder.encode(
JSON.stringify({