use html storage for secure storage in dev

This commit is contained in:
Kyle Spearrin 2018-06-11 09:17:41 -04:00
parent 21a126f31f
commit 5d8e32222a
1 changed files with 2 additions and 1 deletions

View File

@ -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,