1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 10:33:57 +00:00

[PM-18680] biometric's no client key half provided for user (#13609)

* biometric's no client key half provided for user

Biometric's client key half can be optional (null) when the password is not required on start of the application

* improved unit test coverage

* ipc setClientKeyHalf can be null
This commit is contained in:
Maciej Zieniuk
2025-02-28 14:05:16 +01:00
committed by GitHub
parent 8176515c57
commit c80019e919
9 changed files with 453 additions and 204 deletions

View File

@@ -81,7 +81,7 @@ export class ElectronKeyService extends DefaultKeyService {
// May resolve to null, in which case no client key have is required
// TODO: Move to windows implementation
const clientEncKeyHalf = await this.getBiometricEncryptionClientKeyHalf(userKey, userId);
await this.biometricService.setClientKeyHalfForUser(userId, clientEncKeyHalf as string);
await this.biometricService.setClientKeyHalfForUser(userId, clientEncKeyHalf);
await this.biometricService.setBiometricProtectedUnlockKeyForUser(userId, userKey.keyB64);
}