
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
passport-local-fluxible
Advanced tools
Fluxible compatible Passport strategy for authenticating with a username and password.
This is a port of the official local strategy to make it work with the Fluxible framework.
$ npm install passport-local-fluxible
The local authentication strategy authenticates users using a username and
password. The strategy requires a verify callback, which accepts these
credentials and calls done providing a user.
passport.use(new LocalStrategy(
function(username, password, done) {
User.findOne({ username: username }, 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);
});
}
));
Use passport.authenticate(), specifying the 'local' strategy, to
authenticate requests.
For example, as route middleware in an Express application:
module.exports = {
name: 'login',
create: function(req, resource, params, body, config, done) {
passport.authenticate('local', function(err, user, info) {
if(err || !user) {
debug('Auth failed');
return done(err);
}
req.logIn(user, function(err2) {
if(err2) {
debug('Login failed');
return done(err2);
}
return done(err, {
user: user
});
});
})(req, req.res, done);
}
};
FAQs
Fluxible compatible Local Passport strategy
We found that passport-local-fluxible 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.