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

## vertx-auth-mongo-js/mongo_auth

Source:
  - mongo_auth.js, line 3

### 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:
    - mongo_auth.js, line 351

  ##### Returns:

  the created instance of MongoAuths
  Type
    MongoAuth