1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

[PM-19469] Add logs for unlock time (#13972)

* Add logs for unlock time

* Undo local flag override

* Update message

* Update messages

* Fix build on chrome
This commit is contained in:
Bernd Schoolmann
2025-04-02 23:19:53 +02:00
committed by GitHub
parent 31e455ff35
commit 1450a033b3
9 changed files with 37 additions and 3 deletions

View File

@@ -306,11 +306,16 @@ export class DefaultKeyService implements KeyServiceAbstraction {
* TODO: Move to MasterPasswordService
*/
async makeMasterKey(password: string, email: string, KdfConfig: KdfConfig): Promise<MasterKey> {
return (await this.keyGenerationService.deriveKeyFromPassword(
const start = new Date().getTime();
const masterKey = (await this.keyGenerationService.deriveKeyFromPassword(
password,
email,
KdfConfig,
)) as MasterKey;
const end = new Date().getTime();
this.logService.info(`[KeyService] Deriving master key took ${end - start}ms`);
return masterKey;
}
async encryptUserKeyWithMasterKey(