mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Always get key from storage to ensure biometric prompt. (#952)
* Always get key from storage to ensure biometric prompt. * Update jslib * Update jslib
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 5ba1416679...1f83c3c1ba
@@ -29,7 +29,6 @@ import { CipherService } from 'jslib-common/services/cipher.service';
|
||||
import { CollectionService } from 'jslib-common/services/collection.service';
|
||||
import { ConstantsService } from 'jslib-common/services/constants.service';
|
||||
import { ContainerService } from 'jslib-common/services/container.service';
|
||||
import { CryptoService } from 'jslib-common/services/crypto.service';
|
||||
import { EnvironmentService } from 'jslib-common/services/environment.service';
|
||||
import { EventService } from 'jslib-common/services/event.service';
|
||||
import { ExportService } from 'jslib-common/services/export.service';
|
||||
@@ -51,6 +50,8 @@ import { UserService } from 'jslib-common/services/user.service';
|
||||
import { VaultTimeoutService } from 'jslib-common/services/vaultTimeout.service';
|
||||
import { WebCryptoFunctionService } from 'jslib-common/services/webCryptoFunction.service';
|
||||
|
||||
import { ElectronCryptoService } from 'jslib-electron/services/electronCrypto.service';
|
||||
|
||||
import { ApiService as ApiServiceAbstraction } from 'jslib-common/abstractions/api.service';
|
||||
import { AuditService as AuditServiceAbstraction } from 'jslib-common/abstractions/audit.service';
|
||||
import { AuthService as AuthServiceAbstraction } from 'jslib-common/abstractions/auth.service';
|
||||
@@ -96,7 +97,7 @@ const platformUtilsService = new ElectronPlatformUtilsService(i18nService, messa
|
||||
const secureStorageService: StorageServiceAbstraction = new ElectronRendererSecureStorageService();
|
||||
const cryptoFunctionService: CryptoFunctionServiceAbstraction = new WebCryptoFunctionService(window,
|
||||
platformUtilsService);
|
||||
const cryptoService = new CryptoService(storageService, secureStorageService, cryptoFunctionService,
|
||||
const cryptoService = new ElectronCryptoService(storageService, secureStorageService, cryptoFunctionService,
|
||||
platformUtilsService, logService);
|
||||
const tokenService = new TokenService(storageService);
|
||||
const appIdService = new AppIdService(storageService);
|
||||
|
||||
@@ -102,7 +102,7 @@ export class NativeMessagingService {
|
||||
});
|
||||
}
|
||||
|
||||
const keyB64 = await (await this.cryptoService.getKey('biometric')).keyB64;
|
||||
const keyB64 = await (await this.cryptoService.getKeyFromStorage('biometric')).keyB64;
|
||||
|
||||
if (keyB64 != null) {
|
||||
this.send({ command: 'biometricUnlock', response: 'unlocked', keyB64: keyB64 }, appId);
|
||||
|
||||
Reference in New Issue
Block a user