mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
[EC-598] feat: use browser as fallback when vault does not contain requested credential
This commit is contained in:
@@ -107,8 +107,6 @@ export class Fido2Service implements Fido2ServiceAbstraction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async assertCredential(params: CredentialAssertParams): Promise<CredentialAssertResult> {
|
async assertCredential(params: CredentialAssertParams): Promise<CredentialAssertResult> {
|
||||||
const presence = await this.fido2UserInterfaceService.verifyPresence();
|
|
||||||
|
|
||||||
let credential: BitCredential | undefined;
|
let credential: BitCredential | undefined;
|
||||||
|
|
||||||
if (params.allowedCredentialIds && params.allowedCredentialIds.length > 0) {
|
if (params.allowedCredentialIds && params.allowedCredentialIds.length > 0) {
|
||||||
@@ -127,6 +125,8 @@ export class Fido2Service implements Fido2ServiceAbstraction {
|
|||||||
throw new OriginMismatchError();
|
throw new OriginMismatchError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const presence = await this.fido2UserInterfaceService.verifyPresence();
|
||||||
|
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
const clientData = encoder.encode(
|
const clientData = encoder.encode(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
|
|||||||
Reference in New Issue
Block a user