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:
@@ -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 [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user