Commit Graph

20 Commits

Author SHA1 Message Date
Daniel James Smith bd770c90ed
[Account Switching] Base changes for account switching (#2250)
* Pull in jslib

* Create new state models

* Create browser specific stateService

* Remove registration deprecated services, register stateService

* Replace usage of deprecated services (user, constants)

* Add missing properties to BrowserGroupingsComponentState

* Remove StorageService from initFactory

* Clear the correct state

* Add null check when restoring send-grouping state

* add remember email

* Initialize stateservice in services.module

* Fix 'lock now' not working

* Comment to remove setting defaults on install

* Pull jslib

* Remove setting defaults on install

* Bump jslib

* Pass the current userId to services when logging out

* Bump jslib

* Override vaultTimeout default on account addition

* Pull latest jslib

* Retrieve vaultTimeout from stateService

* Record activity per Account

* Add userId to logout and add fallback if not present

* Register AccountFactory

* Pass userId in messages

* Base changes for account switching di fixes (#2280)

* [bug] Null checks on Account init

* [bug] Use same stateService instance for all operations

We override the stateService in browser, but currently don't pull the background service into popup and allow jslib to create its own instance of the base StateService for jslib services.
This causes a split in in memory state between the three isntances that results in many errors, namely locking not working.

* [chore] Update jslib

* Pull in jslib

* Pull in jslib

* Pull in latest jslib to multiple stateservice inits

* Check vault states before executing processReload

* Adjust iterator

* Update native messaging to include the userId (#2290)

* Re-Add UserVerificationService

* Fix email not being remembered by base component

* Improve readability of reloadProcess

* Removed unneeded null check

* Fix constructor dependency (stateService)

* Added missing await

* Simplify dependency registration

* Fixed typos

* Reverted back to simple loop

* Use vaultTimeoutService to retrieve Timeout

Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
2022-01-27 22:22:51 +01:00
Oscar Hinton 8fe821b9a3
Apply Prettier (#2238) 2021-12-21 15:43:35 +01:00
Josep Marí fe2557e21c
Cycle through every login when using the auto-fill shortcut (#956)
* Cycle through every login when using the auto-fill shortcut

* Leave imports ordering as it was

* Undo formatting

* Move logic to jslib

* Remove unused method
2020-08-12 16:05:12 -04:00
Kyle Spearrin 06e56f0b57 copy totp from each implementation of autofill 2018-04-23 10:02:30 -04:00
Kyle Spearrin 5fd400bf9d load service module 2018-04-04 08:27:31 -04:00
Kyle Spearrin f0189b4f71 move autofill models 2018-01-11 15:59:07 -05:00
Kyle Spearrin 9644b7eeb3 added typings to popup services 2018-01-11 14:45:27 -05:00
Kyle Spearrin bb98c7e4da converted cryptoservice to jslib 2018-01-08 15:37:11 -05:00
Kyle Spearrin e68f7a1141 convert domain models to jslib 2018-01-08 15:23:36 -05:00
Kyle Spearrin a78b8ec79c convert request/response models to jslib 2018-01-08 14:45:34 -05:00
Kyle Spearrin c018f096b4 moved service abstractions to jslib 2018-01-06 15:47:46 -05:00
Kyle Spearrin dc15edcd4d moved all enums to jslib 2018-01-06 14:22:55 -05:00
Kyle Spearrin 4a08bf6b71 rename browser utils to platform utils 2018-01-05 16:30:15 -05:00
Kyle Spearrin 01cf48bbed rename browserType to deviceType 2018-01-05 11:13:24 -05:00
Kyle Spearrin 2986bd1e29 browserUtilsService.isViewOpen 2018-01-04 16:49:58 -05:00
Kyle Spearrin d39c5b37dc abstract MessagingService 2018-01-04 16:06:00 -05:00
Kyle Spearrin 0dd711471b separated BrowserUtils from generic Utils 2018-01-04 12:32:10 -05:00
Kyle Spearrin ac0126b210 abstract storage service 2018-01-04 10:51:21 -05:00
Kyle Spearrin bed28aebaa interface cryptoservice 2017-11-13 16:12:23 -05:00
Kyle Spearrin 11f392b036 interfaced utilsservice for popup and dependencies 2017-11-13 15:37:38 -05:00