From 5d8e32222a4fcc5284e13047e021cca9fffcc8db Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 11 Jun 2018 09:17:41 -0400 Subject: [PATCH] use html storage for secure storage in dev --- src/app/services/services.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/services/services.module.ts b/src/app/services/services.module.ts index a26e4ae870..a002c1dcbf 100644 --- a/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts @@ -78,7 +78,8 @@ const storageService: StorageServiceAbstraction = new HtmlStorageService(); const secureStorageService: StorageServiceAbstraction = new MemoryStorageService(); const cryptoFunctionService: CryptoFunctionServiceAbstraction = new WebCryptoFunctionService(window, platformUtilsService); -const cryptoService = new CryptoService(storageService, secureStorageService, cryptoFunctionService); +const cryptoService = new CryptoService(storageService, + platformUtilsService.isDev() ? storageService : secureStorageService, cryptoFunctionService); const tokenService = new TokenService(storageService); const appIdService = new AppIdService(storageService); const apiService = new ApiService(tokenService, platformUtilsService,