[SOLVED] req.isAuthenticated always returns false

Issue if (process.env.NODE_ENV !== "production") { require("dotenv").config(); } const express = require("express"); const app = express(); const bcrypt = require("bcrypt"); const passport = require("passport"); const flash = require("express-flash"); const session = require("express-session"); const initializePassport = require("/sandbox/project/passport-config"); initializePassport( passport, (email) =>

Continue reading