vertx / io.vertx.reactivex.ext.auth.mongo / MongoAuth / create

# create

`open static fun create(mongoClient: MongoClient, config: JsonObject): MongoAuth`

Creates an instance of MongoAuth by using the given and configuration object. An example for a configuration object:

     JsonObject js = new JsonObject(); js.put(MongoAuth.PROPERTY_COLLECTION_NAME, createCollectionName(MongoAuth.DEFAULT_COLLECTION_NAME));

### Parameters

`mongoClient` - an instance of to be used for data storage and retrival

`config` - the configuration object for the current instance. By this

Return
the created instance of io.vertx.reactivex.ext.auth.mongo.MongoAuths