mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
14 lines
474 B
TypeScript
14 lines
474 B
TypeScript
import { UserId } from "@bitwarden/user-core";
|
|
|
|
import { UserKey } from "../../../types/key";
|
|
|
|
export abstract class MasterPasswordUnlockService {
|
|
/**
|
|
* Unlocks the user's account using the master password.
|
|
* @param masterPassword The master password provided by the user.
|
|
* @param userId The ID of the active user.
|
|
* @returns the user's decrypted userKey.
|
|
*/
|
|
abstract unlockWithMasterPassword(masterPassword: string, userId: UserId): Promise<UserKey>;
|
|
}
|