From e3b425069c3b0f0e920ccf1b3123f752f989c736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Fri, 14 Jun 2024 11:36:26 +0200 Subject: [PATCH] [PM-8870] Fix argon2 in desktop (#9628) --- apps/desktop/src/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index 738f053de7..80dbf40cb8 100644 --- a/apps/desktop/src/main.ts +++ b/apps/desktop/src/main.ts @@ -35,6 +35,7 @@ import { WindowMain } from "./main/window.main"; import { BiometricsService, BiometricsServiceAbstraction } from "./platform/main/biometric/index"; import { ClipboardMain } from "./platform/main/clipboard.main"; import { DesktopCredentialStorageListener } from "./platform/main/desktop-credential-storage-listener"; +import { MainCryptoFunctionService } from "./platform/main/main-crypto-function.service"; import { DesktopSettingsService } from "./platform/services/desktop-settings.service"; import { ElectronLogMainService } from "./platform/services/electron-log.main.service"; import { ElectronStorageService } from "./platform/services/electron-storage.service"; @@ -52,6 +53,7 @@ export class Main { environmentService: DefaultEnvironmentService; desktopCredentialStorageListener: DesktopCredentialStorageListener; desktopSettingsService: DesktopSettingsService; + mainCryptoFunctionService: MainCryptoFunctionService; migrationRunner: MigrationRunner; windowMain: WindowMain; @@ -111,6 +113,9 @@ export class Main { this.i18nService = new I18nMainService("en", "./locales/", globalStateProvider); + this.mainCryptoFunctionService = new MainCryptoFunctionService(); + this.mainCryptoFunctionService.init(); + const accountService = new AccountServiceImplementation( MessageSender.EMPTY, this.logService,