From 8a9b992757778f2367b1050d9bab5e8d53097661 Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Tue, 28 Dec 2021 10:47:41 -0500 Subject: [PATCH] [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 --- jslib | 2 +- src/app/services/services.module.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 3d7b427b0e..d68c1dafaf 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 3d7b427b0ea7d6b75cc1eebb7a7595314f564503 +Subproject commit d68c1dafaf0528f5323dd595773b0fa122403d0d diff --git a/src/app/services/services.module.ts b/src/app/services/services.module.ts index bdaa6d1aa8..68e30aed15 100644 --- a/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts @@ -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: (