mirror of
https://github.com/bitwarden/browser
synced 2026-02-04 18:53:20 +00:00
Don't manually clear cipher cache
This shouuld be done already by the calls to updateWithServer
This commit is contained in:
@@ -190,7 +190,6 @@ export class Fido2AuthenticatorService<ParentWindowReference>
|
||||
}
|
||||
const reencrypted = await this.cipherService.encrypt(cipher, activeUserId);
|
||||
await this.cipherService.updateWithServer(reencrypted);
|
||||
// await this.cipherService.clearCache(activeUserId);
|
||||
credentialId = fido2Credential.credentialId;
|
||||
} catch (error) {
|
||||
this.logService?.error(
|
||||
@@ -331,7 +330,6 @@ export class Fido2AuthenticatorService<ParentWindowReference>
|
||||
);
|
||||
const encrypted = await this.cipherService.encrypt(selectedCipher, activeUserId);
|
||||
await this.cipherService.updateWithServer(encrypted);
|
||||
await this.cipherService.clearCache(activeUserId);
|
||||
}
|
||||
|
||||
const authenticatorData = await generateAuthData({
|
||||
|
||||
Reference in New Issue
Block a user