Am doing the same course, fix is there on udemy. From Udemy :
Passport v.0.6.0 is currently broken due to an incompatibility:
https://github.com/jaredhanson/passport/issues/907
The maintainer suggests using the latest v0.5.0 until a fix is pushed out. Use:
npm uninstall passport
npm install [email protected]
this worked fine for me.