Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
apollo-passport-mongodb-driver
Advanced tools
Forked from tomitrescak/apollo-passport-mongodb MongoDB native driver for apollo-passport
Copyright (c) 2016 by Gilad Shoham, released under the MIT license.
import { MongoClient } from 'mongodb';
import MongoDriver from 'apollo-passport-mongodb-driver';
// However you usually create your mongodb instance
const m = await MongoClient.connect(`mongodb://${host}:${port}/${name}`);
// Pass to apollo passport at creation time
const apolloPassport = new ApolloPassport({
// along with any other relevant options
db: new MongoDriver(m)
});
Optional parameters, e.g. if your users
table is called something else:
new MongoDriver(r, {
userTableName: 'users',
configTableName: 'apolloPassportConfig',
db: '(override default database given to mongo)'
});
See apollo-passport and apollo-passport-local-strategy for more info.
This package is fully documented with 100% test coverage. It can be used as a basis for creating other DBDrivers for Apollo Passport.
See also the API Docs, ordered by version and viewable online via rawgit, e.g. v0.0.2 API Docs on RawGit.
FAQs
mongodb driver for apollo-passport
The npm package apollo-passport-mongodb-driver receives a total of 1 weekly downloads. As such, apollo-passport-mongodb-driver popularity was classified as not popular.
We found that apollo-passport-mongodb-driver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.