1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-21 16:18:28 +01:00
bitwarden-browser/libs
Matt Gibson cdcd1809f0
Expand account service (#6622)
* Define account service observable responsibilities

* Establish account service observables and update methods

* Update Account Service observables from state service

This is a temporary stop-gap to avoid needing to reroute all account
activity and status changes through the account service. That can be
done as part of the breakup of state service.

* Add matchers for Observable emissions

* Fix null active account

* Test account service

* Transition account status to account info

* Remove unused matchers

* Remove duplicate class

* Replay active account for late subscriptions

* Add factories for background services

* Fix state service for web

* Allow for optional messaging

This is a temporary hack until the flow of account status can be
reversed from state -> account to account -> state. The foreground
account service will still logout, it's just the background one cannot
send messages

* Fix add account logic

* Do not throw on recoverable errors

It's possible that duplicate entries exist in `activeAccounts` exist
in the wild. If we throw on adding a duplicate account this will cause
applications to be unusable until duplicates are removed it is not
necessary to throw since this is recoverable. with some potential loss
in current account status

* Add documentation to abstraction

* Update libs/common/spec/utils.ts

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>

* Fix justin's comment :fist-shake:

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2023-10-19 15:41:01 -04:00
..
.vscode Multi root workspace tweaks (#2858) 2022-06-13 21:39:36 -05:00
angular Expand account service (#6622) 2023-10-19 15:41:01 -04:00
auth [BEEEP] [PM-3838] Refactor password callout (#6234) 2023-09-28 14:52:05 +00:00
common Expand account service (#6622) 2023-10-19 15:41:01 -04:00
components [PM-4222] Make importer UI reusable (#6504) 2023-10-19 11:17:23 +02:00
exporter [ADR-0006][AC-319] Migrate all tests to use jest mock instead of substitute (#6520) 2023-10-17 17:02:33 +00:00
importer [PM-4195] Lastpass lib cleanup (#6636) 2023-10-19 20:06:01 +01:00
node add support for decrypting AES-ECB mode (#6476) 2023-10-04 16:58:47 -04:00
shared [PM-4222] Make importer UI reusable (#6504) 2023-10-19 11:17:23 +02:00
vault [PM-2169] Update Password Reprompt Modal to use Component Library (#5720) 2023-10-04 22:56:27 -04:00