bedrock-credentials-mongodb

3.3.2 • Public • Published

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);

Package Sidebar

Install

npm i bedrock-credentials-mongodb

Weekly Downloads

17

Version

3.3.2

License

none

Unpacked Size

43.3 kB

Total Files

12

Last publish

Collaborators

  • davidlehn
  • dlongley
  • mattcollier
  • msporny