mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +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
|
// Verify key is correct by attempting to decrypt a secret
|
||||||
try {
|
try {
|
||||||
await this.cryptoService.getFingerprint(await this.stateService.getUserId());
|
const userId = (await firstValueFrom(this.accountService.activeAccount$))?.id;
|
||||||
|
await this.cryptoService.getFingerprint(userId);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logService.error("Unable to verify key: " + e);
|
this.logService.error("Unable to verify key: " + e);
|
||||||
await this.cryptoService.clearKeys();
|
await this.cryptoService.clearKeys();
|
||||||
|
|||||||
Reference in New Issue
Block a user