Implement the Serialization of a Passport User Hint

What is your hint or solution suggestion?

(1) Create a DATABASE variable in .env file (don’t forget this should be a string)

(2) app.route(..) AND app.listen(..)
should both be included within:
mongo.connect(process.env.DATABASE, (err, db) => {...}

(3) Also don’t forget to uncomment the:

  • db.collection('users').findOne(..)
    block of code

Challenge: Implement the Serialization of a Passport User

Link to the challenge: