Make sure you access the playlist for smooth navigation - ua-cam.com/play/PLu0W_9lII9agx66oZnT6IyhcMIbUMNMdt.html Source Code: github.com/CodeWithHarry/iNotebook-React
Harry bhai , mene aaj tak apke utne kuch jyada nhi kiye the follow videos but this playlist i m following from 1 st video itself. Kasam se apki fan ho gyi me 😁❤️ Thank you so much 😇
Harry bhai apna account no btao, itna helpful videos upload krte ho aap kuch toh deserve krte ho aap, we are investing lots of money for a particular subject in institute, but here we can learn lots of languages with wonderful projects. Such an amazing person you are.. ❤️❤️
Hello Harry bhai. I hope you are doing well. Jab maine request send ki with password parameter but password ki value blank rakhi to validator work ni kiya sidha user find krne chala gaya bt jaise hi meri body mese maine password key hata di tab exists() vali validator as a error return ki . May be aapko exists() ki jagah notEmpty() function use krna chahiye.
agar kisi ko compare me error aa rahe he ye function do const passwordcompare = async(password) => { const match = await bcrypt.compare(password, user.password); return match; }
Assalamo Alikum Sir Sir kiya asa office hai jo urdu mai interview ly our office waly urdu bholy muje typescript react javascript and node.js and exprees ati sirf language ka issues hai english ki samj ati par mai bol nhi sakti
sir the token generated by createuser endpoint does not match with the token generated with the login endpoint in response after correctly authentication . Is it correct?
everytime, i'm sending login credentials, it is everytime showing up the same thing { "error": "Please try to login with correct credentials" } checked codebase multiple times, problem is occuring while comparing the passwords, it is not able to compare passwords....What To Do Guys ?
Solution:the compare method takes a third argument in form of a callback function .compare(password,userpassword,(data,err)=>{ If (err){ Return res.stastus(401).json({msg: 'invalid credentials '}) } } )
Sir yeh issue aa rha jab bhi request send kr rha thunderClient mai.. Connection was refused by the server. Database mai bhi create nhn hua kuch MongoDb mai..
Used the following bcryptjs compare code if the harry bhai vedios code is not working bcrypt.compare (password, user.password, (err, data) => { if (err) throw err if (data) { const data = {user: { id:user.id }} const authtoken = jwt.sign(data, JWT_SECRET); s.status(200).json({authtoken}) } else { return res.status(400).json({error: "Please enter the correct crediential"}) })
Make sure you access the playlist for smooth navigation - ua-cam.com/play/PLu0W_9lII9agx66oZnT6IyhcMIbUMNMdt.html
Source Code: github.com/CodeWithHarry/iNotebook-React
when we encrypted the password while creating user we used salt, but while login we didn't used salt anywhere. why?
Harry bhai , mene aaj tak apke utne kuch jyada nhi kiye the follow videos but this playlist i m following from 1 st video itself. Kasam se apki fan ho gyi me 😁❤️ Thank you so much 😇
Harry bhai apna account no btao, itna helpful videos upload krte ho aap kuch toh deserve krte ho aap, we are investing lots of money for a particular subject in institute, but here we can learn lots of languages with wonderful projects.
Such an amazing person you are.. ❤️❤️
Use Join Feature on the UA-cam Channel
Harry ki site par jao yha par harry bhai ne paytm no diya hua hai
2 million incoming 🔥..Harry bhai OP❤️
I used to have a lot of problem while learning backend few months back today I am very much confident Thank you Harry Bhai
i am getting this error
Error
Cannot POST /api/auth/login
after making request on localhost:5000:/api/auth/login please reply if u know the reason behind this error
U are Osm. Literally I have been Learning This JWT auth from few Days . But Finally Today i Understand the Logic . Thank u /// Love From Bihar ❤❤❤❤❤❤❤
This React Course is Awesome!
Hello Harry bhai. I hope you are doing well.
Jab maine request send ki with password parameter but password ki value blank rakhi to validator work ni kiya sidha user find krne chala gaya bt jaise hi meri body mese maine password key hata di tab exists() vali validator as a error return ki .
May be aapko exists() ki jagah notEmpty() function use krna chahiye.
Harry bhaiya rocks xD 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
Amazing Bhaiya 🔥
maza aagya bhai ... will become a mern stack developer
agar kisi ko compare me error aa rahe he ye function do const passwordcompare = async(password) => {
const match = await bcrypt.compare(password, user.password);
return match;
}
Thanks vai 🙌✌️bhot helpful
ap ka ya method laga kar dekha hai auth-token response ma aa rha hai but wrong password laga kar bhi auth-token a rha hai. Any solotion about this?
same problem here
@@uzairhakeem9478
solved or not@@uzairhakeem9478
This react course is awesome 😊😍😍😍😍😍😍🖤🖤🖤
You are genius
this tutorial is very useful
Harris sir definitely hit the 4 million before the 2022 ending
Harry bhai is always great... Video is awesome👍😊 🥰🥰
#harrybhaaijordaar😌💯💯
Happy teacher's day Harry bhai❤️❤️
Im planning to shift from Vue js to React JS. This will be more helpful for me. Thanks Haryy Bhai
Sir *dat*file ko kis extension se use kar sakte hai
This course is awesome
this video is very very helpfull!
Assalamo Alikum Sir
Sir kiya asa office hai jo urdu mai interview ly our office waly urdu bholy muje typescript react javascript and node.js and exprees ati sirf language ka issues hai english ki samj ati par mai bol nhi sakti
Best Mern stack course
Sir can tell me how. Date file ko kis extension se dekhe
sir the token generated by createuser endpoint does not match with the token generated with the login endpoint in response after correctly authentication . Is it correct?
same problem. pata chala kya ho raha hai?
This react course is helpful.
help!! In collections "user login using creds" is not forming .
Did u get the solution of this error
2 videos back to back Harry bhai❤💛
Awesome 🔥🔥
everytime, i'm sending login credentials, it is everytime showing up the same thing
{
"error": "Please try to login with correct credentials"
}
checked codebase multiple times, problem is occuring while comparing the passwords, it is not able to compare passwords....What To Do Guys ?
Did u find any solution??
Solution:the compare method takes a third argument in form of a callback function
.compare(password,userpassword,(data,err)=>{
If (err){
Return res.stastus(401).json({msg: 'invalid credentials '})
}
}
)
@@swasthikkumar5398 yeah i got the solution instead using compare function, you can directly use == operator
Can you the paste the code here
@@samirkunwar5845apko eska solution mila
this mern stack course is helpfull
4:32
*_Shaayad harry bhai is near to the airport✈✈_*
*_Can you listen the background voice it's like plane takeoff🛫🛫🛫_*
bhai react.js se kaha bheja yeh data
react se node.js m data tranfer dekhna h like we do in angular
Thanks a lot Harry bhai
even after entering the correct credentials the authtoken is not working in the login but working perfectly fine in createuser one, help ??
have u got the solution? please reply i am also stuck there
OMG! 2 videos in less than 2 minutes🖥😍😂
thank you harry bhai
Harry bhaiya thank you
harry bhai vs hacker
hacker : rainbow table
harry bhai: salts & paper
hmmm😎😎😎
love from nepal
Maja aa raha ha bhout
Harry bhai k ghar k bahar se plane jata h 😂😂
Why no one ever appreciates the outro music!
Hii sir can you make can you make a playlist for python beginners 2021
video 50 completed 😍
i am getting this error
Error
Cannot POST /api/auth/login
after making request on localhost:5000:/api/auth/login please reply if u know the reason behind this error
@@khushikumari6172 I think you should remove colon after 5000
Try to do it with localhost:5000/api/auth
@@arpitshukla-zt9bp sorry by mistake i wrote here localhost:5000:/api/auth/login but in request i wrote localhost:5000/api/auth/login only
Do u know the solution of this error?
@@khushikumari6172 did you remove the colon after 5000?
Harry bhai author token store to kia hi nahi to fir verify kaise kia! Thora technically samjhado please🙏
by comparing there, by email's related password with the user given password, which is in req.body
Plz harry bhai angular pe playlist banado
ThankYou So Much
75MS at 10:28
Harry Sir please make a video for add cart login authentication
done harry bhai
Sir make a video on pandas in python
Thank you
Sir yeh issue aa rha jab bhi request send kr rha thunderClient mai.. Connection was refused by the server.
Database mai bhi create nhn hua kuch MongoDb mai..
ek bar endpoint check krlo '/auth/createuser' hona chahiye naki 'auth/createuser'
maybe your connection string is not correct. ping me I will help you
@@shubhamyadav-pf6bv kiya bhai maine ek baar firse dekh btata hun
@@shubhamyadav-pf6bv i am getting this error
Error
Cannot POST /api/auth/login
after making request on localhost:5000:/api/auth/login please reply if u know the reason behind this error
Btw are we using node js or express
both....including MERN
Harry bhai is always great... Video is osm
at 4:35 i heard a plane voice😂
Plase give example for login with ldap authentication
please make a video for JWT
Sir help to solve some problem on php
Amazing
Can anybody help me in removing the email index? I deleted it manually but it again got created.
In /models/User.js their is uinque:true in email due to this email index is created again
bcrypt compare always return alw false
gajab
Unending sending resquest aa rahi hai login resquest can anyone help me ??
thanks
I'm getting the "please authenticate using a valid token" error even if I'm using the VALID TOKEN only
Can anyone help please
Op.bruh
MySQL full course and git cheatsheet please 🙏🏻🥺
good
Cannot access 'user' before initialization ye error aa raha hai
let user = await User.findOne({email});
@@amanpawar2290 hi it is not solving now also
50 tak completed with code and git
i am getting this error
Error
Cannot POST /api/auth/login
after making request on localhost:5000:/api/auth/login please reply if u know the reason behind this error
@@khushikumari6172change the method from get to post in thunderclient
Gjb
ab confusion hota ja raha hai
First view Harrry bhaii !! 🧡❤
jyada kuch smjh nhi aarha ab
watch video twice ...would become easy then
Because there are many new things which we can't understand
Sir😊
6:00
🔥
Sare code k bad...undefined or server error show kyo kr ra h
Full race dedo sb smj aa rha h bhai koe dikkt nhi
Can i get pinned 🤔🤔🤔🤔
👌👌👌👌
#HarryBhai
Ohhhh
#harrybhai
#HarryBhai"
Hello
❤
Half century
First
1
I m first?
second
O pagal jaye
Used the following bcryptjs compare code if the harry bhai vedios code is not working
bcrypt.compare (password, user.password, (err, data) => {
if (err) throw err
if (data) {
const data = {user: {
id:user.id
}}
const authtoken = jwt.sign(data, JWT_SECRET);
s.status(200).json({authtoken})
} else {
return res.status(400).json({error: "Please enter the correct crediential"})
})
1st view finally