1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-16 10:45:20 +01: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
No known key found for this signature in database
GPG Key ID: E70B5FFC81DFEC1A

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({