1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-24 21:41:33 +01:00

remove unnecessary service injection

This commit is contained in:
rr-bw 2024-09-14 13:06:34 -07:00
parent e0d4702299
commit d49c044ccc
No known key found for this signature in database
GPG Key ID: 3FA13C3ADEE51D5D

View File

@ -1,21 +1,12 @@
import { inject } from "@angular/core";
import { DefaultLoginService, LoginService } from "@bitwarden/auth/angular";
import { SsoLoginServiceAbstraction } from "@bitwarden/common/auth/abstractions/sso-login.service.abstraction";
import { CryptoFunctionService } from "@bitwarden/common/platform/abstractions/crypto-function.service";
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { Utils } from "@bitwarden/common/platform/misc/utils";
import { ToastService } from "@bitwarden/components";
import { PasswordGenerationServiceAbstraction } from "@bitwarden/generator-legacy";
export class DesktopLoginService extends DefaultLoginService implements LoginService {
cryptoFunctionService = inject(CryptoFunctionService);
environmentService = inject(EnvironmentService);
i18nService = inject(I18nService);
// TODO-rr-bw: refactor to not use deprecated service
passwordGenerationService = inject(PasswordGenerationServiceAbstraction);
ssoLoginService = inject(SsoLoginServiceAbstraction);
toastService = inject(ToastService);
override async launchSsoBrowserWindow(email: string, clientId: "desktop"): Promise<void | null> {