diff --git a/libs/common/src/key-management/master-password/abstractions/master-password.service.abstraction.ts b/libs/common/src/key-management/master-password/abstractions/master-password.service.abstraction.ts index 8c7798cb773..53ee650ed79 100644 --- a/libs/common/src/key-management/master-password/abstractions/master-password.service.abstraction.ts +++ b/libs/common/src/key-management/master-password/abstractions/master-password.service.abstraction.ts @@ -22,7 +22,7 @@ export abstract class MasterPasswordServiceAbstraction { abstract forceSetPasswordReason$: (userId: UserId) => Observable; /** * 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; /** * 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. */ diff --git a/libs/common/src/key-management/master-password/services/master-password.service.ts b/libs/common/src/key-management/master-password/services/master-password.service.ts index f237082d628..8c5c1077b55 100644 --- a/libs/common/src/key-management/master-password/services/master-password.service.ts +++ b/libs/common/src/key-management/master-password/services/master-password.service.ts @@ -245,8 +245,8 @@ export class MasterPasswordService implements InternalMasterPasswordServiceAbstr ) as MasterPasswordAuthenticationHash; return { - kdf, salt, + kdf, masterPasswordAuthenticationHash, } as MasterPasswordAuthenticationData; } diff --git a/libs/common/src/key-management/master-password/types/master-password.types.ts b/libs/common/src/key-management/master-password/types/master-password.types.ts index 4b7cf5365e2..76451ed0870 100644 --- a/libs/common/src/key-management/master-password/types/master-password.types.ts +++ b/libs/common/src/key-management/master-password/types/master-password.types.ts @@ -16,7 +16,7 @@ export type MasterPasswordSalt = Opaque; export type MasterKeyWrappedUserKey = Opaque; /** - * 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;