1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00
bitwarden-browser/libs/angular/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 [AC-1707] Restrict provider access to items (#8265) 2024-05-07 12:35:28 -07:00
auth [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
billing/images/cards [AC-1011] Admin Console / Billing code ownership (#4973) 2023-03-22 10:03:50 -05:00
components Auth/PM-5501 - VaultTimeoutSettingsService State Provider Migration (#8604) 2024-05-13 15:56:04 -04:00
directives [PM-2282] Make feature flags type safe (#8612) 2024-04-26 12:57:26 +02:00
pipes [PM-6688] Use AccountService as account source (#8893) 2024-04-30 09:13:02 -04:00
platform Ps/improve-log-service (#8989) 2024-04-30 12:58:16 -04:00
scss [CL-218] Add new icons for extension refresh (#8805) 2024-04-19 16:11:12 -04:00
services [PM-7926] Handle complex user logout events (#9115) 2024-05-14 16:27:43 -04:00
tools [PM-6688] Use AccountService as account source (#8893) 2024-04-30 09:13:02 -04:00
types [EC-7] Org Admin Vault Refresh Client V1 (#3925) 2022-11-02 09:57:25 -07:00
utils [PM-6827] Browser Extension Refresh - Tabs Routing (#9004) 2024-05-06 09:14:47 -07:00
vault [AC-1707] Restrict provider access to items (#8265) 2024-05-07 12:35:28 -07:00
jslib.module.ts [CL-18] toast component and service (#6490) 2024-04-18 13:23:35 -04:00