import Base, { MaybeRaw } from "../../../../Base"; import { User } from "../../../../interfaces/idp"; export default class UserPasswordService extends Base { /** * 2nd phase of the reset password flow * @param email Email of the user * @param nonce Nonce present in the link sent via email * @param newPassword New password * @param totpToken (Optional) TOTP token in case the user had 2FA enabled * @returns User object */ resetPassword(email: string, nonce: string, newPassword: string, totpToken?: string, raw?: { raw: R; }): Promise>; parseResetPasswordToken(token: string): { email: string; nonce: string; regionId?: string; }; protected getEndpoint(endpoint: string): string; }