import { Utils } from "../../../platform/misc/utils"; import { TwoFactorProviderType } from "../../enums/two-factor-provider-type"; import { ForceResetPasswordReason } from "./force-reset-password-reason"; export class AuthResult { captchaSiteKey = ""; // TODO: PM-3287 - Remove this after 3 releases of backwards compatibility. - Target release 2023.12 for removal /** * @deprecated * Replace with using AccountDecryptionOptions to determine if the user does * not have a master password and is not using Key Connector. * */ resetMasterPassword = false; forcePasswordReset: ForceResetPasswordReason = ForceResetPasswordReason.None; twoFactorProviders: Map = null; ssoEmail2FaSessionToken?: string; email: string; get requiresCaptcha() { return !Utils.isNullOrWhitespace(this.captchaSiteKey); } get requiresTwoFactor() { return this.twoFactorProviders != null; } }