1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 05:43:41 +00:00

add auth status to auth service (#8377)

* add auth status to auth service

* fix auth service factory
This commit is contained in:
Jake Fink
2024-03-26 09:56:20 -04:00
committed by GitHub
parent d000f081da
commit a46767dee2
7 changed files with 88 additions and 3 deletions

View File

@@ -23,9 +23,12 @@ import {
stateServiceFactory,
} from "../../../platform/background/service-factories/state-service.factory";
import { AccountServiceInitOptions, accountServiceFactory } from "./account-service.factory";
type AuthServiceFactoryOptions = FactoryOptions;
export type AuthServiceInitOptions = AuthServiceFactoryOptions &
AccountServiceInitOptions &
MessagingServiceInitOptions &
CryptoServiceInitOptions &
ApiServiceInitOptions &
@@ -41,6 +44,7 @@ export function authServiceFactory(
opts,
async () =>
new AuthService(
await accountServiceFactory(cache, opts),
await messagingServiceFactory(cache, opts),
await cryptoServiceFactory(cache, opts),
await apiServiceFactory(cache, opts),

View File

@@ -568,6 +568,7 @@ export default class MainBackground {
);
this.authService = new AuthService(
this.accountService,
backgroundMessagingService,
this.cryptoService,
this.apiService,

View File

@@ -494,6 +494,7 @@ export class Main {
);
this.authService = new AuthService(
this.accountService,
this.messagingService,
this.cryptoService,
this.apiService,