docs: function getAuthorization(user, auth) {
      if (auth === AUTH_BASIC) {
          return 'Basic ' + btoa(user.username + ':' + user.password);
      } else if (auth === AUTH_TOKEN) {
          return 'Token token=' + user.token;
      }
  }