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:
parent
9dd1a65b29
commit
0225093c11
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user