code: public function setAuth($login, $secret, $type = TokenAuthorization::class)
      {
          switch ($type) {
              case TokenAuthorization::class:
                  $auth = new TokenAuthorization($login, $secret);
                  break;
              case BasicAuthorization::class:
                  $auth = new BasicAuthorization($login, $secret);
                  break;
              default:
                  throw new ClientIncorrectAuthTypeException('Unknown authorization type');
          }
  
          $this->apiTransport->setAuth($auth);
      }
docs: @param string $login
  @param string $secret
  @param string $type
  
  @throws ClientIncorrectAuthTypeException