mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 19:53:59 +00:00
Merge branch 'km/new-mp-service-api' of github.com:bitwarden/clients into km/new-mp-service-api
This commit is contained in:
@@ -22,7 +22,7 @@ export abstract class MasterPasswordServiceAbstraction {
|
||||
abstract forceSetPasswordReason$: (userId: UserId) => Observable<ForceSetPasswordReason>;
|
||||
/**
|
||||
* An observable that emits the master key for the user.
|
||||
* @deprecated Interacting with the master-key directly is deprecated. Please use {@link makeMasterPasswordUnlockData} and {@link makeMasterPasswordAuthenticationData}, {@link unwrapUserKeyFromMasterPasswordUnlockData} instead.
|
||||
* @deprecated Interacting with the master-key directly is deprecated. Please use {@link makeMasterPasswordUnlockData}, {@link makeMasterPasswordAuthenticationData} or {@link unwrapUserKeyFromMasterPasswordUnlockData} instead.
|
||||
* @param userId The user ID.
|
||||
* @throws If the user ID is missing.
|
||||
*/
|
||||
@@ -99,7 +99,7 @@ export abstract class InternalMasterPasswordServiceAbstraction extends MasterPas
|
||||
abstract setMasterKey: (masterKey: MasterKey, userId: UserId) => Promise<void>;
|
||||
/**
|
||||
* Clear the master key for the user.
|
||||
* @deprecated
|
||||
* @deprecated Interacting with the master-key directly is deprecated.
|
||||
* @param userId The user ID.
|
||||
* @throws If the user ID is missing.
|
||||
*/
|
||||
|
||||
@@ -245,8 +245,8 @@ export class MasterPasswordService implements InternalMasterPasswordServiceAbstr
|
||||
) as MasterPasswordAuthenticationHash;
|
||||
|
||||
return {
|
||||
kdf,
|
||||
salt,
|
||||
kdf,
|
||||
masterPasswordAuthenticationHash,
|
||||
} as MasterPasswordAuthenticationData;
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ export type MasterPasswordSalt = Opaque<string, "MasterPasswordSalt">;
|
||||
export type MasterKeyWrappedUserKey = Opaque<EncString, "MasterPasswordSalt">;
|
||||
|
||||
/**
|
||||
* The data required to unlock the master password.
|
||||
* The data required to unlock with the master password.
|
||||
*/
|
||||
export type MasterPasswordUnlockData = {
|
||||
salt: MasterPasswordSalt;
|
||||
@@ -25,7 +25,7 @@ export type MasterPasswordUnlockData = {
|
||||
};
|
||||
|
||||
/**
|
||||
* The data required to unlock the master password.
|
||||
* The data required to authenticate with the master password.
|
||||
*/
|
||||
export type MasterPasswordAuthenticationData = {
|
||||
salt: MasterPasswordSalt;
|
||||
|
||||
Reference in New Issue
Block a user