mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[PM-24677] Slim StateService down so it can be moved to state lib (#16021)
* Slim StateService down so it can be moved to state lib * Fix accidental import changes * Add `switchAccount` assertion * Needs to use mock
This commit is contained in:
@@ -129,7 +129,7 @@ export abstract class BaseProgram {
|
||||
if (!userId) {
|
||||
fail();
|
||||
}
|
||||
const authed = await this.serviceContainer.stateService.getIsAuthenticated({ userId });
|
||||
const authed = await firstValueFrom(this.serviceContainer.tokenService.hasAccessToken$(userId));
|
||||
if (!authed) {
|
||||
fail();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user