1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +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

@@ -224,7 +224,10 @@ export class PinService implements PinServiceAbstraction {
}
async makePinKey(pin: string, salt: string, kdfConfig: KdfConfig): Promise<PinKey> {
const start = Date.now();
const pinKey = await this.keyGenerationService.deriveKeyFromPassword(pin, salt, kdfConfig);
this.logService.info(`[Pin Service] deriving pin key took ${Date.now() - start}ms`);
return (await this.keyGenerationService.stretchKey(pinKey)) as PinKey;
}