1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

Ps/fix biometric prompt error on close (#8353)

* Fix error on close due to context differences in background

Desktop background does not have active user information. Also, we want to delete _all_ prompt cancelled data, not just that for the active user. Storing this on global and manipulating observables to active achieves this without needing any user information in the background.

* Remove potentially orphaned data

* Throw nice error if prompt cancelled used without active user

* Register migration

* split prompt cancelled reset to user-specific and global
This commit is contained in:
Matt Gibson
2024-03-21 12:02:04 -05:00
committed by GitHub
parent 05609a814c
commit 600cc080b8
10 changed files with 197 additions and 28 deletions

View File

@@ -94,7 +94,7 @@ export class WindowMain {
// down the application.
app.on("before-quit", async () => {
// Allow biometric to auto-prompt on reload
await this.biometricStateService.resetPromptCancelled();
await this.biometricStateService.resetAllPromptCancelled();
this.isQuitting = true;
});