1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 13:40:06 +00:00

Throw error if no activeUserId was found

This commit is contained in:
Anders Åberg
2025-03-06 20:51:46 +01:00
parent 02348f4fa2
commit 5d6abb40be

View File

@@ -186,6 +186,11 @@ export class DesktopAutofillService implements OnDestroy {
const activeUserId = await firstValueFrom(
this.accountService.activeAccount$.pipe(map((a) => a?.id)),
);
if (!activeUserId) {
this.logService.error("listenPasskeyAssertion error", "Active user not found");
callback(new Error("Active user not found"), null);
return;
}
const decrypted = await cipher.decrypt(
await this.cipherService.getKeyForCipherKeyDecryption(cipher, activeUserId),