TypeError:this.authenticate is not a function Nodejs Mostly in this case we missed a pair of parenthesis on passport.session method call. app.use(passport.session());