1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00
bitwarden-browser/apps/desktop/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
..
app [PM-7926] Handle complex user logout events (#9115) 2024-05-14 16:27:43 -04:00
auth [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
autofill/services [PM-5571] Migrate enableDDG to state provider framework (#8384) 2024-03-22 13:32:03 -04:00
images [PM-4612] [PM-6218] [PM-6219] Enable Duo redirect on Desktop Client (#7798) 2024-02-14 09:06:04 -08:00
locales add i18n messages used by forwarders (#9158) 2024-05-13 12:11:15 -04:00
main Add beta extension to allowed native messaging hosts (#8996) 2024-05-01 13:43:15 -04:00
models Auth/PM-5501 - VaultTimeoutSettingsService State Provider Migration (#8604) 2024-05-13 15:56:04 -04:00
platform [PM-5363] PinService State Providers (#8244) 2024-05-08 11:34:47 -07:00
proxy [PM-1674] let node-ipc use individual pipes on Windows (#4020) 2023-04-11 16:45:24 +02:00
scss [CL-18] toast component and service (#6490) 2024-04-18 13:23:35 -04:00
services Use account service for account enumeration. (#9023) 2024-05-03 14:24:30 -04:00
types [PM-3683] Remove ipcRenderer from electron-platform-utils (#6679) 2023-11-01 18:34:36 +01:00
vault/app [AC-2555] Cipher collections dialog merge fixes (#9036) 2024-05-07 10:00:47 -07:00
entry.ts Move desktop into apps/desktop 2022-05-05 17:20:34 +02:00
global.d.ts [PM-3996] Scaffolding for preload script (#6065) 2023-10-12 11:50:17 +02:00
index.html [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
main.ts [PM-7766] Add clientType to MigrationHelper (#8945) 2024-04-29 07:28:58 -04:00
package-lock.json Bumped browser,cli,desktop,web version to (#9064) 2024-05-06 22:37:46 +00:00
package.json Bumped browser,cli,desktop,web version to (#9064) 2024-05-06 22:37:46 +00:00
preload.ts [PM-3756] Disable node integration and enable context isolation in desktop (#6975) 2024-02-08 18:00:19 +01:00
utils.spec.ts [SM-329] Merge libs/electron into desktop (#3989) 2022-12-02 12:45:09 +01:00
utils.ts [PM-3756] Disable node integration and enable context isolation in desktop (#6975) 2024-02-08 18:00:19 +01:00