1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 19:53:59 +00:00
Files
browser/libs/common/src/auth/models/request/email.request.ts
Bernd Schoolmann f2edf37cf3 tmp
2025-07-23 12:54:54 +02:00

19 lines
887 B
TypeScript

// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { EncryptedString } from "@bitwarden/common/key-management/crypto/models/enc-string";
import { MasterPasswordAuthenticationData, MasterPasswordAuthenticationHash, MasterPasswordUnlockData } from "@bitwarden/common/key-management/master-password/types/master-password.types";
import { EmailTokenRequest } from "./email-token.request";
export class EmailRequest extends EmailTokenRequest {
newMasterPasswordHash: MasterPasswordAuthenticationHash;
token: string
key: EncryptedString;
constructor(authenticationData: MasterPasswordAuthenticationData, unlockData: MasterPasswordUnlockData) {
super();
this.masterPasswordHash = authenticationData.masterPasswordAuthenticationHash;
this.newMasterPasswordHash = authenticationData.masterPasswordAuthenticationHash;
}
}