1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 19:53:59 +00:00

Add more logging around cipher filtering error

This commit is contained in:
Jeffrey Holland
2025-07-02 22:46:43 +02:00
parent c0fa664d2e
commit bc2f77f84d

View File

@@ -170,13 +170,17 @@ export class Fido2CreateComponent implements OnInit, OnDestroy {
try {
const allCiphers = await this.cipherService.getAllDecrypted(activeUserId);
// eslint-disable-next-line no-console
console.log("Retrieved all decrypted ciphers");
return allCiphers.filter(
(cipher) =>
cipher.login?.matchesUri(rpid, equivalentDomains) &&
Fido2Utils.cipherHasNoOtherPasskeys(cipher, userHandle) &&
!cipher.deletedDate,
);
} catch {
} catch (error) {
// eslint-disable-next-line no-console
console.log("Failed filtering ciphers with error: ", error);
await this.showErrorDialog(DIALOG_MESSAGES.unexpectedErrorShort);
return [];
}