1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-11 10:10:25 +01:00
bitwarden-browser/apps/desktop/src/app
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
..
accounts PM-5501 - VaultTimeoutSettingsSvc State Provider Migration - Small bugfixes (#9164) 2024-05-13 17:04:26 -04:00
components Add eslint rule no-floating-promises (#7789) 2024-02-02 15:13:37 -05:00
layout [PM-7838] [PM-7864] Ensure AuthStatus Changes Before Exiting (#9018) 2024-05-03 16:43:42 -04:00
services Auth/PM-5501 - VaultTimeoutSettingsService State Provider Migration (#8604) 2024-05-13 15:56:04 -04:00
shared [SM-251] Migrate to new avatar component (#3600) 2022-10-27 14:38:34 +02:00
tools [PM-6688] Use AccountService as account source (#8893) 2024-04-30 09:13:02 -04:00
app-routing.module.ts [PM-6688] Use AccountService as account source (#8893) 2024-04-30 09:13:02 -04:00
app.component.ts [PM-7926] Handle complex user logout events (#9115) 2024-05-14 16:27:43 -04:00
app.module.ts [PM-6967] Replace app-callouts with bit-callouts on desktop (#8415) 2024-03-21 11:58:48 -04:00
main.ts [PM-3756] Disable node integration and enable context isolation in desktop (#6975) 2024-02-08 18:00:19 +01:00