mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
use html storage for secure storage in dev
This commit is contained in:
@@ -78,7 +78,8 @@ const storageService: StorageServiceAbstraction = new HtmlStorageService();
|
|||||||
const secureStorageService: StorageServiceAbstraction = new MemoryStorageService();
|
const secureStorageService: StorageServiceAbstraction = new MemoryStorageService();
|
||||||
const cryptoFunctionService: CryptoFunctionServiceAbstraction = new WebCryptoFunctionService(window,
|
const cryptoFunctionService: CryptoFunctionServiceAbstraction = new WebCryptoFunctionService(window,
|
||||||
platformUtilsService);
|
platformUtilsService);
|
||||||
const cryptoService = new CryptoService(storageService, secureStorageService, cryptoFunctionService);
|
const cryptoService = new CryptoService(storageService,
|
||||||
|
platformUtilsService.isDev() ? storageService : secureStorageService, cryptoFunctionService);
|
||||||
const tokenService = new TokenService(storageService);
|
const tokenService = new TokenService(storageService);
|
||||||
const appIdService = new AppIdService(storageService);
|
const appIdService = new AppIdService(storageService);
|
||||||
const apiService = new ApiService(tokenService, platformUtilsService,
|
const apiService = new ApiService(tokenService, platformUtilsService,
|
||||||
|
|||||||
Reference in New Issue
Block a user