bradtraversy / storybooks

Node.js app with Google OAuth
MIT License
569 stars 893 forks source link

User.findById() does not accept call backs anymore. #68

Closed FinzyPHINZY closed 8 months ago

FinzyPHINZY commented 8 months ago

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!