Constructors

Properties

captchaAttempts: number = 0
captchaValidate?: ICallbackServiceValidate
fetchCookie: FetchWrapper
jar: CookieJar
started: boolean
twoFactorAttempts: number = 0
twoFactorValidate?: ICallbackServiceValidate

Accessors

Methods

  • Process captcha

    Parameters

    • __namedParameters: {
          captcha_img: string;
          captcha_sid: number;
      }
      • captcha_img: string
      • captcha_sid: number

    Returns Promise<Response>

  • Process two-factor

    Parameters

    • __namedParameters: {
          phone_mask: string;
          validation_type: string;
      }
      • phone_mask: string
      • validation_type: string

    Returns Promise<Response>

  • Runs authorization

    Returns Promise<{
        email?: string;
        expires: number;
        token: string;
        user: number;
    }>

Generated using TypeDoc