1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-16 02:27:00 +02:00
bitwarden-browser/apps/browser
Matt Gibson c70a5aa024
[PM-6688] Use AccountService as account source (#8893)
* Use account service to track accounts and active account

* Remove state service active account Observables.

* Add email verified to account service

* Do not store account info on logged out accounts

* Add account activity tracking to account service

* Use last account activity from account service

* migrate or replicate account service data

* Add `AccountActivityService` that handles storing account last active data

* Move active and next active user to account service

* Remove authenticated accounts from state object

* Fold account activity into account service

* Fix builds

* Fix desktop app switch

* Fix logging out non active user

* Expand helper to handle new authenticated accounts location

* Prefer view observable to tons of async pipes

* Fix `npm run test:types`

* Correct user activity sorting test

* Be more precise about log out messaging

* Fix dev compare errors

All stored values are serializable, the next step wasn't necessary and was erroring on some types that lack `toString`.

* If the account in unlocked on load of lock component, navigate away from lock screen

* Handle no users case for auth service statuses

* Specify account to switch to

* Filter active account out of inactive accounts

* Prefer constructor init

* Improve comparator

* Use helper methods internally

* Fixup component tests

* Clarify name

* Ensure accounts object has only valid userIds

* Capitalize const values

* Prefer descriptive, single-responsibility guards

* Update libs/common/src/state-migrations/migrate.ts

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

* Fix merge

* Add user Id validation

activity for undefined was being set, which was resulting in requests for the auth status of `"undefined"` (string) userId, due to key enumeration. These changes stop that at both locations, as well as account add for good measure.

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2024-04-30 09:13:02 -04:00
..
.vscode
config [PM-7653] Do not store disk-backed sessions as single blobs (#8852) 2024-04-22 10:14:38 -04:00
spec
src [PM-6688] Use AccountService as account source (#8893) 2024-04-30 09:13:02 -04:00
store Autosync the updated translations (#8878) 2024-04-23 15:29:47 +00:00
.eslintrc.json [PM-5743] Implement eslint rule for usage of window object in background script (#7849) 2024-03-29 15:55:23 +00:00
.gitignore
crowdin.yml
gulpfile.js Fix Beta Version (#8944) 2024-04-29 13:40:44 -04:00
jest.config.js Ps/pm 5533/migrate decrypted user key (#7970) 2024-02-22 15:07:26 -05:00
package.json [PM-7663] Update Build Pipeline for Beta Labelling (#8903) 2024-04-26 15:15:36 -04:00
postcss.config.js
README.md [PM-5632] Update Bitwarden extension review URLs (#7470) 2024-01-08 21:08:18 +01:00
tailwind.config.js
test.setup.ts [PM-5744] Adjust Fido2 Content Script Injection to Meet mv3 Requirements (#8222) 2024-04-18 16:05:16 +00:00
tsconfig.json [CL-219][CL-218][CL-217] Add new extension layout components (#8728) 2024-04-26 09:35:32 -04:00
tsconfig.spec.json
webpack.config.js [PM-5744] Adjust Fido2 Content Script Injection to Meet mv3 Requirements (#8222) 2024-04-18 16:05:16 +00:00

Github Workflow build browser on master Crowdin Join the chat at https://gitter.im/bitwarden/Lobby

Bitwarden Browser Extension

The Bitwarden browser extension is written using the Web Extension API and Angular.

My Vault

Documentation

Please refer to the Browser section of the Contributing Documentation for build instructions, recommended tooling, code style tips, and lots of other great information to get you started.