Node.js Rest Api with Express MongoDB 6 - (JSON Web Tokens) JWT based authentication in NodeJS

preview_player
Показать описание


★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

thanks bro from the tutorials that you have provided

obi.
Автор

There are lots of error I am getting in the code
1. In db.js file where you are using bcryp you are using req.password here req is undefined is error.
2. You are using _id in the function "generateAuthToken" but "user._id.toString()" is undefined because user._id is undefined.

pcog
Автор

Error cast to ObjectId failee for value "me" (type string) at path "_id" for model "user"

upcomingcoder