function createAdminClient(conf, initOauthBearerToken) {
  var client = new AdminClient(conf);

  if (initOauthBearerToken) {
    client.refreshOauthBearerToken(initOauthBearerToken);
  }

  // Wrap the error so we throw if it failed with some context
  LibrdKafkaError.wrap(client.connect(), true);

  // Return the client if we succeeded
  return client;
}
Create a new AdminClient for making topics, partitions, and more.

This is a factory method because it immediately starts an
active handle with the brokers.