Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
egg-session-mongo
Advanced tools
A session extension for store session in MongoDB.
see Chinese version: 中文
$ npm i egg-session-mongo --save
// {app_root}/config/plugin.js
exports.sessionMongo = {
enable: true,
package: 'egg-session-mongo',
};
or you can overwrite you MongoStore
options in app.js
.
// {app_root}/app.js
module.exports = app => {
const MongoStore = require('egg-session-mongo')(app);
app.beforeStart(async () => {
app.sessionStore = new MongStore(/* options */);
});
};
see app.js for more detail.
// {app_root}/config/config.default.js
exports.sessionMongo = {
url: 'mongodb://127.0.0.1/test'
};
see config/config.example.js for more detail.
Please open an issue here. or open an issue just at this repo's issue for more timely reply
FAQs
MongoDB store for egg session. based on `connect-mongo`.
The npm package egg-session-mongo receives a total of 1 weekly downloads. As such, egg-session-mongo popularity was classified as not popular.
We found that egg-session-mongo 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.