28 - Node.js API + Passport - Local Authentication Strategy - Getting the user from the DB

preview_player
Показать описание
In lesson 28, we will reference our DB class in the router and use it to get the user that is assosciated with the user id that is appended on the incoming request object.

Once we have the user, we can then adjust our 200 response to send back the user object with the information we want to include in the response object.

To ensure you're up to speed with the series, check out our complete playlist:
✅ - Full Course Playlist

Рекомендации по теме
visit shbcf.ru