1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

[bug(Account Switching)] Allow for never lock for dev setups (#1345)

* [bug(Account Switching)] Allow for never lock for dev setups

* [chore] Remove unecassary import

* [style] Ran prettier

* [chore] Update jslib
This commit is contained in:
Addison Beck
2021-12-28 10:47:41 -05:00
committed by GitHub
parent 55ecc4b804
commit 8a9b992757
2 changed files with 7 additions and 2 deletions

2
jslib

Submodule jslib updated: 3d7b427b0e...d68c1dafaf

View File

@@ -126,7 +126,12 @@ export function initFactory(
deps: ["WINDOW"],
},
{ provide: StorageServiceAbstraction, useClass: HtmlStorageService },
{ provide: "SECURE_STORAGE", useClass: MemoryStorageService },
{
provide: "SECURE_STORAGE",
// TODO: platformUtilsService.isDev has a helper for this, but using that service here results in a circular dependency.
// We have a tech debt item in the backlog to break up platformUtilsService, but in the meantime simply checking the environement here is less cumbersome.
useClass: process.env.NODE_ENV === "development" ? HtmlStorageService : MemoryStorageService,
},
{
provide: PlatformUtilsServiceAbstraction,
useFactory: (