1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-15 10:35:20 +01: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
No known key found for this signature in database

View File

@ -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(