mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
Fix nativeMessaging background by replacing removed state service usage with account service for user id retrieval (#10501)
This commit is contained in:
@@ -337,7 +337,8 @@ export class NativeMessagingBackground {
|
||||
|
||||
// Verify key is correct by attempting to decrypt a secret
|
||||
try {
|
||||
await this.cryptoService.getFingerprint(await this.stateService.getUserId());
|
||||
const userId = (await firstValueFrom(this.accountService.activeAccount$))?.id;
|
||||
await this.cryptoService.getFingerprint(userId);
|
||||
} catch (e) {
|
||||
this.logService.error("Unable to verify key: " + e);
|
||||
await this.cryptoService.clearKeys();
|
||||
|
||||
Reference in New Issue
Block a user