
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
passport-session
Advanced tools
Local username and password with sessionId authentication strategy for Passport.
$ npm install passport-session
It is the same as passport-local but with a sessionId. It allow you to authenticate your users on differents sessions (or "rooms").
passport.use(new LocalStrategy(
function(email, password, sessionId, done) {
User.findOne({ email: email, sessionId: sessionId }, function (err, user) {
if (err) { return done(err); }
if (!user) { return done(null, false); }
if (!user.verifyPassword(password)) { return done(null, false); }
return done(null, user);
});
}
));
This strategy takes an optional options hash before the function, e.g. new LocalStrategy({/* options */, callback})
.
The available options are:
emailField
- Optional, defaults to 'email'passwordField
- Optional, defaults to 'password'sessionIdField
- Optional, defaults to 'sessionId'This fields define the name of the properties in the POST body that are sent to the server.
FAQs
Local username and password with sessionId authentication strategy for Passport.
The npm package passport-session receives a total of 925 weekly downloads. As such, passport-session popularity was classified as not popular.
We found that passport-session 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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.