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:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user