From 3de85c75cb27d81481b5d73d470862dce9c9856d Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Wed, 31 Jul 2024 22:16:04 +0200 Subject: [PATCH] Allow browser extension unlock while desktop is locked (#9945) --- apps/desktop/src/services/native-messaging.service.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/desktop/src/services/native-messaging.service.ts b/apps/desktop/src/services/native-messaging.service.ts index ce97b9b7ac..5980fade83 100644 --- a/apps/desktop/src/services/native-messaging.service.ts +++ b/apps/desktop/src/services/native-messaging.service.ts @@ -3,7 +3,6 @@ import { firstValueFrom, map } from "rxjs"; import { AccountService } from "@bitwarden/common/auth/abstractions/account.service"; import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service"; -import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status"; import { CryptoFunctionService } from "@bitwarden/common/platform/abstractions/crypto-function.service"; import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service"; import { LogService } from "@bitwarden/common/platform/abstractions/log.service"; @@ -145,11 +144,6 @@ export class NativeMessagingService { return this.send({ command: "biometricUnlock", response: "not unlocked" }, appId); } - const authStatus = await firstValueFrom(this.authService.authStatusFor$(userId)); - if (authStatus !== AuthenticationStatus.Unlocked) { - return this.send({ command: "biometricUnlock", response: "not unlocked" }, appId); - } - const biometricUnlockPromise = message.userId == null ? firstValueFrom(this.biometricStateService.biometricUnlockEnabled$) @@ -183,6 +177,7 @@ export class NativeMessagingService { }, appId, ); + await ipc.platform.reloadProcess(); } else { await this.send({ command: "biometricUnlock", response: "canceled" }, appId); }