Disabling OTP authorization

To disable the Two Factor authorization for a specific User you will need a valid OTP token.

const user = 'aa316e7b-54ca-4843-bad3-da9b03c96dda';

// Disables 2fa for specific account
await bitcapital.twoFactor().disable({ user }, {
  // This method requires a valid OTP
  headers: {
    'x-bitcapital-otp': '123456'
  }
});