Skip to content
Credential storage in mongodb
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
CHANGELOG.md
LICENSE.md
README.md
package.json

README.md

bedrock-credentials-mongodb

Build Status

A bedrock module that stores credentials in a MongoDB database.

Requirements

  • 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.