Express: req.flash() requires sessions
The issue was with how my view was getting rendered (using req.flash data)
Changing this:
loginShow: function(req, res){ res.render('login', { message: req.flash });}
To this:
loginShow: function(req, res){ res.render('login', { message: req.flash() });}
Fixed the error and causes connect-flash to act as expected.
Is your redis-server running? Try
redis-server
This solved the issue for me.