1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-18 02:41:15 +02:00
bitwarden-browser/apps/cli/src
Matt Gibson 94b57687f5
[PM-7926] Handle complex user logout events (#9115)
* Update activity when switching users

* Clear data of designated user

* Do not switchMap to null, always to Promise or Observable

* handle uninitialized popup services

* Switch to new account immediately and log out as inactive.

Split up done logging out and navigation so we can always display expire warning.

* Do not navigate in account switcher, main.background takes care of it

* Ignore storage updates from reseed events

* Remove loading on cancelled logout

* Catch missed account switch errors

* Avoid usage of active user state in sync service

Send service does not currently support specified user data
manipulation, so we ensure that the notification was sent to the
active user prior to processing the notification.

* Clear sequentialize caches on account switch

These caches are used to ensure that rapid calls to an async method are not repeated. However, the cached promises are valid only within a given userId context and must be cleared when that context changes.

* Revert `void` promise for notification reconnect

* Update libs/angular/src/services/jslib-services.module.ts

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

* Handle switch account routing through messaging background -> app

* Use account switch status to handle unlocked navigation case.

* Revert "Handle switch account routing through messaging background -> app"

This reverts commit 8f35078ecb.

---------

Co-authored-by: Cesar Gonzalez <cesar.a.gonzalezcs@gmail.com>
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-05-14 16:27:43 -04:00
..
admin-console [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
auth/commands [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
commands [PM-5735] Create kdf Service (#8715) 2024-04-25 11:26:01 -07:00
locales/en add i18n messages used by forwarders (#9158) 2024-05-13 12:11:15 -04:00
models [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
platform Auth/PM-5501 - VaultTimeoutSettingsService State Provider Migration (#8604) 2024-05-13 15:56:04 -04:00
tools [PM-5574] sends state provider (#8373) 2024-04-02 12:39:06 -04:00
vault Vault/pm-7580/resolve-cipher-update-race (#8806) 2024-04-18 14:06:31 -04:00
bw.ts [PM-7926] Handle complex user logout events (#9115) 2024-05-14 16:27:43 -04:00
program.ts set user key once we detect session key (#9084) 2024-05-08 14:48:49 -04:00
utils.ts [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
vault.program.ts [AC-2156] Billing State Provider Migration (#8133) 2024-03-15 14:53:05 -05:00