Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AccountClient

Hierarchy

  • AccountClient

Index

Constructors

constructor

Methods

disableTwoFactor

  • disableTwoFactor(password: string): Promise<boolean>
  • Disables 2FA from user's account.

    Parameters

    • password: string

      User Account's password

    Returns Promise<boolean>

enableTwoFactor

  • enableTwoFactor(otpCode: string): Promise<string[]>
  • Enables 2FA to user's account.

    Parameters

    • otpCode: string

      OTP Code from 2FA QR

    Returns Promise<string[]>

getDetails

twoFactor

  • twoFactor(): Promise<string>

updateEmail

  • updateEmail(newMail: string, password: string): Promise<true>
  • Updates user's email

    Parameters

    • newMail: string

      New Email

    • password: string

      Your current password account

    Returns Promise<true>

updatePassword

  • updatePassword(currentPassword: string, newPassword: string): Promise<boolean>
  • Updates user's password

    Parameters

    • currentPassword: string

      Your current account password

    • newPassword: string

      New password you want

    Returns Promise<boolean>

Generated using TypeDoc