Skip to content
Credential storage in mongodb
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Build Status

A bedrock module that stores credentials in a MongoDB database.


  • npm v3+

Quick Examples

npm install bedrock-credentials-mongodb
var bedrock = require('bedrock');
var store = require('bedrock-credentials-mongodb');

// insert a credential into storage
store.insert(actor, credential, callback);

// get a credential from storage
store.get(actor, query, callback);

// count credentials matching a query
// NOTE: for optimal performance, special attention should be given to query
// parameters and indexing.  Refer to MongoDB documentation for special
// considerations if a sharded cluster is involved.
store.count(actor, query, callback);
You can’t perform that action at this time.