There is an error learners will face if they run the code just how it is. This error is from the passport.js file. In the last code block, User.deserializeUser() will output an error 'findById does not accept callbacks anymore'.
So this is a pull request updating the function to utilize async/await. which results in the method working properly!
There is an error learners will face if they run the code just how it is. This error is from the passport.js file. In the last code block, User.deserializeUser() will output an error 'findById does not accept callbacks anymore'. So this is a pull request updating the function to utilize async/await. which results in the method working properly!