1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

Added full synce service to the fido2 authenticator to ensure the full sync is completed before getting all decrypted ciphers

This commit is contained in:
gbubemismith
2023-08-09 13:21:16 -04:00
parent 6e86b25e82
commit fe1526ddf4

View File

@@ -350,6 +350,11 @@ export class Fido2AuthenticatorService implements Fido2AuthenticatorServiceAbstr
return []; 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(); const ciphers = await this.cipherService.getAllDecrypted();
return ciphers return ciphers
.filter( .filter(