# Module: vertx-auth-mongo-js/mongo_auth

### Classes

MongoAuth

### Methods

#### (static) MongoAuth.create(mongoClient, config) → {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:

Name | Type | Description
--- | --- | ---
`mongoClient` | MongoClient | an instance of to be used for data storage and retrival
`config` | Object | the configuration object for the current instance. By this

Source:
  - vertx-auth-mongo-js/mongo_auth.js, line 351

##### Returns:

the created instance of MongoAuths

Type
  MongoAuth