1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 19:53:59 +00:00
This commit is contained in:
Bernd Schoolmann
2025-07-23 21:26:35 +02:00
parent 04e0250642
commit 56a669a887

View File

@@ -150,7 +150,7 @@ export abstract class KeyService {
/**
* Generates a new user key
* @deprecated Interacting with the master key directly is prohibited. Use a high level function from MasterPasswordService instead.
* @deprecated Interacting with the master key directly is prohibited. Use {@link makeUserKey} instead.
* @throws Error when master key is null and there is no active user
* @param masterKey The user's master key. When null, grabs master key from active user.
* @returns A new user key and the master key protected version of it
@@ -158,6 +158,7 @@ export abstract class KeyService {
abstract makeUserKey(masterKey: MasterKey | null): Promise<[UserKey, EncString]>;
/**
* Generates a new user key for a V1 user
* Note: This will be replaced by a higher level function to initialize a whole users cryptographic state in the near future.
* @returns A new user key
*/
abstract makeUserKeyV1(): Promise<UserKey>;