diff --git a/speech.js b/speech.js index 4b052fa1..470d0588 100644 --- a/speech.js +++ b/speech.js @@ -40,7 +40,7 @@ app.use((req, res, next) => { // custom logging middleware to log all incoming }); // initialize passport -app.use(session({ secret: 'cats' })); +app.use(session({ secret: 'cats', resave: false, saveUninitialized: false })); app.use(passport.initialize()); app.use(passport.session()); passport.serializeUser(serializeSpeechUser); // takes the user id from the db and serializes it