Top "Passport-local" questions

Authentication strategy for Passport JS using a username/email and password.

Can you authenticate with Passport without redirecting?

I have the following working code to authenticate through the passport-local strategy: app.post('/api/login', passport.authenticate('local-login', { …

node.js passport.js passport-local
passport.initialize() middleware not in use for express 4.10 for custom callback

can anyone please help me with this. I keep getting Error: passport.initialize() middleware not in use when i try …

node.js express passport.js passport-local
Express: req.flash() requires sessions

I'm having some problems getting connect-flash to work, the error message I'm getting is: 'Error: req.flash() requires sessions' I've …

node.js express passport.js passport-local connect-flash
Passport local strategy done callback does not pass error json message

I am trying to pass a JSON message when authentication fails, using done callback in the LocalStrategy, but all I …

node.js express passport.js passport-local
how to send json as a response after passport authenticationin node.js

I am trying this git example. Which works well when I integrated it with my project, but what I want …

node.js express passport-facebook passport-local
modify password with expressjs mongoose passport-local

First of all, I'm french, and my english is not really good, I do my best :) I created a local …

node.js express mongoose change-password passport-local
Update logged in user details in session

I am using PassportJS with ExpressJS. I need to update the logged in user details. While I do update this …

node.js express passport.js passport-local
How to show custom error messages using passport and express

I check if the email already exist when registering a user. If a user already exist I pass the error …

node.js express passport.js passport-local
Passport Session showing undefined req.user

When im logging in the req.user is displayed as it should, but after navigating to /test , the req.user …

node.js session passport-local