From abae19c7f016e1541c6f39c75497ab1a71b95426 Mon Sep 17 00:00:00 2001 From: Evan Bassler Date: Tue, 18 Feb 2025 09:46:46 -0600 Subject: [PATCH] update to use matchesUri --- .../src/modal/passkeys/create/fido2-create.component.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/desktop/src/modal/passkeys/create/fido2-create.component.ts b/apps/desktop/src/modal/passkeys/create/fido2-create.component.ts index 4271fececa3..0baa0d61770 100644 --- a/apps/desktop/src/modal/passkeys/create/fido2-create.component.ts +++ b/apps/desktop/src/modal/passkeys/create/fido2-create.component.ts @@ -62,27 +62,22 @@ export class Fido2CreateComponent implements OnInit { ) {} async ngOnInit() { - console.log("fido2 create component"); this.session = this.fido2UserInterfaceService.getCurrentSession(); - console.log(this.session, "session"); const rpid = await this.session.getRpId(); const equivalentDomains = await firstValueFrom( this.domainSettingsService.getUrlEquivalentDomains(rpid), ); - console.log(rpid, "webdomain stuff"); - this.cipherService .getAllDecrypted() .then((ciphers) => { - console.log(ciphers, "ciphers from url"); const relevantCiphers = ciphers.filter((cipher) => { - if (!cipher.login) { + if (!cipher.login || !cipher.login.hasUris) { return false; } return ( - cipher.login.uri === rpid && + cipher.login.matchesUri(rpid, equivalentDomains) && (!cipher.login.fido2Credentials || cipher.login.fido2Credentials.length === 0) ); });