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:
@@ -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),
|
||||
|
||||
@@ -568,6 +568,7 @@ export default class MainBackground {
|
||||
);
|
||||
|
||||
this.authService = new AuthService(
|
||||
this.accountService,
|
||||
backgroundMessagingService,
|
||||
this.cryptoService,
|
||||
this.apiService,
|
||||
|
||||
@@ -494,6 +494,7 @@ export class Main {
|
||||
);
|
||||
|
||||
this.authService = new AuthService(
|
||||
this.accountService,
|
||||
this.messagingService,
|
||||
this.cryptoService,
|
||||
this.apiService,
|
||||
|
||||
Reference in New Issue
Block a user