Name: bedrock-credentials-mongodb
Owner: Digital Bazaar, Inc.
Description: Credential storage in mongodb
Created: 2015-05-08 14:22:31.0
Updated: 2016-01-31 19:02:38.0
Pushed: 2017-03-20 15:28:30.0
Homepage: null
Size: 55
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A bedrock module that stores credentials in a MongoDB database.
install bedrock-credentials-mongodb
s
bedrock = require('bedrock');
store = require('bedrock-credentials-mongodb');
nsert a credential into storage
e.insert(actor, credential, callback);
et a credential from storage
e.get(actor, query, callback);
ount credentials matching a query
OTE: for optimal performance, special attention should be given to query
arameters and indexing. Refer to MongoDB documentation for special
onsiderations if a sharded cluster is involved.
e.count(actor, query, callback);