You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another cause for the problem would be returning the user id during serialization: passport.serializeUser(function(user, cb) { process.nextTick(function() { return cb(null, { id: user.id, username: user.username }); }); });
Read More Here => https://www.passportjs.org/concepts/authentication/sessions/
when i try to click submit the secret it is not getting the user id
when i checked using console.log(req.user.id) it is showing "undefined"
facing isse with app.post("/submit")
The text was updated successfully, but these errors were encountered: