From fe1526ddf4345d8c8ef7b695ea3f0cd00f94f05c Mon Sep 17 00:00:00 2001 From: gbubemismith Date: Wed, 9 Aug 2023 13:21:16 -0400 Subject: [PATCH] Added full synce service to the fido2 authenticator to ensure the full sync is completed before getting all decrypted ciphers --- .../src/vault/services/fido2/fido2-authenticator.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/common/src/vault/services/fido2/fido2-authenticator.service.ts b/libs/common/src/vault/services/fido2/fido2-authenticator.service.ts index 251144e8ce7..29e8d628b62 100644 --- a/libs/common/src/vault/services/fido2/fido2-authenticator.service.ts +++ b/libs/common/src/vault/services/fido2/fido2-authenticator.service.ts @@ -350,6 +350,11 @@ export class Fido2AuthenticatorService implements Fido2AuthenticatorServiceAbstr return []; } + //ensure full sync has completed before getting the ciphers + if ((await this.syncService.getLastSync()) == null) { + await this.syncService.fullSync(false); + } + const ciphers = await this.cipherService.getAllDecrypted(); return ciphers .filter(