Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

digitalbazaar/bedrock-credentials-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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