1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

[PM-27221] Update legacy kdf state on master password unlock sync (#16966)

* Update legacy kdf state on master password unlock sync

* Fix cli build

* Fix

* Fix build

* Fix cli

* Fix browser
This commit is contained in:
Bernd Schoolmann
2025-10-23 11:38:10 +02:00
committed by GitHub
parent 29dccd6352
commit 7e7107f165
5 changed files with 10 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ import {
// This import has been flagged as unallowed for this class. It may be involved in a circular dependency loop.
import { SecurityStateService } from "@bitwarden/common/key-management/security-state/abstractions/security-state.service";
// eslint-disable-next-line no-restricted-imports
import { KeyService } from "@bitwarden/key-management";
import { KdfConfigService, KeyService } from "@bitwarden/key-management";
// FIXME: remove `src` and fix import
// eslint-disable-next-line no-restricted-imports
@@ -100,6 +100,7 @@ export class DefaultSyncService extends CoreSyncService {
authService: AuthService,
stateProvider: StateProvider,
private securityStateService: SecurityStateService,
private kdfConfigService: KdfConfigService,
) {
super(
tokenService,
@@ -434,6 +435,7 @@ export class DefaultSyncService extends CoreSyncService {
masterPasswordUnlockData,
userId,
);
await this.kdfConfigService.setKdfConfig(userId, masterPasswordUnlockData.kdf);
}
}
}