1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-18 02:19:18 +00:00

Remove inividual user key states and migrate to account cryptographic state

This commit is contained in:
Bernd Schoolmann
2026-01-01 15:12:25 +01:00
parent 2665a29f2d
commit dc75f19fcb
40 changed files with 355 additions and 561 deletions

View File

@@ -439,7 +439,13 @@ export class ServiceContainer {
this.derivedStateProvider,
);
this.securityStateService = new DefaultSecurityStateService(this.stateProvider);
this.accountCryptographicStateService = new DefaultAccountCryptographicStateService(
this.stateProvider,
);
this.securityStateService = new DefaultSecurityStateService(
this.accountCryptographicStateService,
);
this.environmentService = new DefaultEnvironmentService(
this.stateProvider,
@@ -493,6 +499,7 @@ export class ServiceContainer {
this.accountService,
this.stateProvider,
this.kdfConfigService,
this.accountCryptographicStateService,
);
const pinStateService = new PinStateService(this.stateProvider);
@@ -635,10 +642,6 @@ export class ServiceContainer {
this.accountService,
);
this.accountCryptographicStateService = new DefaultAccountCryptographicStateService(
this.stateProvider,
);
const sdkClientFactory = flagEnabled("sdk")
? new DefaultSdkClientFactory()
: new NoopSdkClientFactory();