1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-05 05:17:40 +02:00
bitwarden-browser/libs
Jared Snider fffef95c5e
Auth/PM-7235 - Refactor AuthService.getAuthStatus, deprecate everBeenUnlocked, and handle initialization of auto user key on client init (#8590)
* PM-7235 - AuthSvc - Refactor getAuthStatus to simply use the cryptoService.hasUserKey check to determine the user's auth status.

* PM-7235 - CryptoSvc - getUserKey - remove setUserKey side effect if auto key is stored. Will move to app init

* PM-7235 - For each client init service, add setUserKeyInMemoryIfAutoUserKeySet logic

* PM-7235 - CryptoSvc tests - remove uncessary test.

* PM-7235 - Create UserKeyInitService and inject into all init services with new listening logic to support acct switching.

* PM-7235 - UserKeyInitSvc - minor refactor of setUserKeyInMemoryIfAutoUserKeySet

* PM-7235 - Add test suite for UserKeyInitService

* PM-7235 - Remove everBeenUnlocked as it is no longer needed

* PM-7235 - Fix tests

* PM-7235 - UserKeyInitSvc - per PR feedback, add error handling to protect observable stream from being cancelled in case of an error

* PM-7235 - Fix tests

* Update libs/common/src/platform/services/user-key-init.service.ts

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>

* Update libs/common/src/platform/services/user-key-init.service.ts

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>

* PM-7235 - AuthSvc - Per PR review, for getAuthStatus, only check user key existence in memory.

* PM-7235 - remove not useful test per PR feedback.

* PM-7235 - Per PR feedback, update cryptoService.hasUserKey to only check memory for the user key.

* PM-7235 - Per PR feedback, move user key init service listener to main.background instead of init service

* PM-7235 - UserKeyInitSvc tests - fix tests to plass

---------

Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2024-04-19 11:20:13 -04:00
..
.vscode Multi root workspace tweaks (#2858) 2022-06-13 21:39:36 -05:00
admin-console create team owned libs for billing, admin-console, platform (#7233) 2023-12-15 09:02:21 -05:00
angular Auth/PM-7235 - Refactor AuthService.getAuthStatus, deprecate everBeenUnlocked, and handle initialization of auto user key on client init (#8590) 2024-04-19 11:20:13 -04:00
auth Auth/PM-7467- Fix Refresh token issues (#8757) 2024-04-16 14:05:47 -04:00
billing create team owned libs for billing, admin-console, platform (#7233) 2023-12-15 09:02:21 -05:00
common Auth/PM-7235 - Refactor AuthService.getAuthStatus, deprecate everBeenUnlocked, and handle initialization of auto user key on client init (#8590) 2024-04-19 11:20:13 -04:00
components [CL-18] toast component and service (#6490) 2024-04-18 13:23:35 -04:00
importer [PM-7304] Add missing i18n keys for import errors (#8743) 2024-04-17 16:19:06 +01:00
node [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
platform create team owned libs for billing, admin-console, platform (#7233) 2023-12-15 09:02:21 -05:00
shared [AC-2356] Use safeProvider in web core services module (#8521) 2024-04-08 07:59:12 +10:00
tools Move export.component from @bitwarden/angular to @bitwarden/vault-export-ui (#8514) 2024-03-27 17:02:56 +00:00
vault [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00