Try moving the app.use(session({someOptions})) up before you use app.use(passport.session())
I would suggest you look at the lib docs, read/watch some more tutorials, and look at some more example code. Create simple test projects that isolate the functionality you want to understand and use.