Thank god i landed up to your video for the jwt authentication. So clear explaination about each typed worded. As i heard your explanations about the abstract doubt i has about async and await from half a year. Immediately subscribed your channel.
only this video cover all the major points. this lecture belongs to strong base of any new project. i came first time here and i am not going without subscribe. you saved my day or more than a day thanks. waiting for your reply these are my emotions for you.
Do we really need to check the existence of user on signup using findone method. Can't it simply returns error if we defined the userName or email unique in the mongoose schema?? Just want to know what's the best practice.
Sir, so simply and in a very effective way you taught this topic..I had learnt express from some other youtube channel also, but the concept of JWT wasn't much cleared there and then I Searched for other channels and found this awesome playlist...thanku so much for making it..I request you to please also make a video on the same topic but with data that comes from any login signup form in browser...Hope you will..!
sir mujhay problem a rha ha k "jwt.sign is not a function" mry khyal ma ye shyd outdated ho gya ha is liye ye work hee nai kr rha...please age ap mjy is error ka solution bta dn
Post Karte hai toh kuch info server ko bhejoge....wo info ko body kehte hai...why body? Http protocol - 2 bande ke baat karne ka tareeka hota hai...client ko server se baat karni hai toh uska tareeka hona chaiye jisse dono samjh paaye ki kya baat ho rahi h...issi ke liye http protocol h Ab iss protocol mei kuch parts hai - headers, body Header meta info ke liye hote h Ya kuch additional info like token Body mei actual info bhejte hai ki server pe kya save karana chahte ho
@@CheezyCode ha yeh wala mereko bhi thora confusion laga what if kisika email aur dusreka password de diya to bhi authenticate ho jayga lag raha hai not sure thora batate to accha hota beginner hu.🙂 koi object wala scene hai kya ki same object ko hi access karega.
Sir I'm getting this error TypeError: Cannot destructure property 'username' of 'req.body' as it is undefined. const { username, email, password } = req.body; ^ TypeError: Cannot destructure property 'username' of 'req.body' as it is undefined. pls help
Error: data must be a string or Buffer and salt must either be a salt string or a number of rounds at Object.hash (D:\100daysofCode\DEV\jwt ode_modules\bcrypt\bcrypt.js:144:17) at D:\100daysofCode\DEV\jwt ode_modules\bcrypt\promises.js:29:12 at new Promise () at module.exports.promise (D:\100daysofCode\DEV\jwt ode_modules\bcrypt\promises.js:20:12) at Object.hash (D:\100daysofCode\DEV\jwt ode_modules\bcrypt\bcrypt.js:133:25) at signup (D:\100daysofCode\DEV\jwt\src\modles\controllers\userController.js:19:46) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) I'm getting this error. How to resolve this? pls help me
Error: data and salt arguments required at Object.hash (H:\myoldprojects odepractice ode_modules\bcrypt\bcrypt.js:137:17) at H:\myoldprojects odepractice ode_modules\bcrypt\promises.js:29:12 at new Promise ()
ERROR IS "TypeError: jwt.sign is not a function at createtoken (C:\Users\Dell\Desktop\NODE JS AUTHENTICATION AND COOKIES\src\app.js:120:24) at Object. (C:\Users\Dell\Desktop\NODE JS AUTHENTICATION AND COOKIES\src\app.js:124:1) at Module._compile (node:internal/modules/cjs/loader:1155:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10) at Module.load (node:internal/modules/cjs/loader:1033:32) at Function.Module._load (node:internal/modules/cjs/loader:868:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:22:47 [nodemon] app crashed - waiting for file changes before starting..."
Thank god i landed up to your video for the jwt authentication. So clear explaination about each typed worded. As i heard your explanations about the abstract doubt i has about async and await from half a year. Immediately subscribed your channel.
Thank you so much! I have been struggling to understand since 3 days. Now I am able to do it
you are like Net Ninja but in Hindi. Perfect explanation!
It's Cheezycode 😂 no comparison bro 😁
@@CheezyCode your'e being too cheezy😆
Nice one sir, bht easy way me & bahut clear explain kare aap ne. Thanks
waoo! best video aaj tak ka ... love u bhai... waiting for next
Best video found for authentication. Perfectly explained bhaiya 👌
Excellent explanation marvellous video of youtube
Hindi me aapne kafi accha samjhaya hai ☺️
Thank you. Video is helpful and your teaching style is good.
only this video cover all the major points. this lecture belongs to strong base of any new project. i came first time here and i am not going without subscribe. you saved my day or more than a day thanks. waiting for your reply these are my emotions for you.
one more thing how can we use this token as authorization of endpoints after login please clear this
Thank you so much ❤️ Here is the playlist covering Authorization ruclips.net/p/PLRKyZvuMYSIMjYhIwc6vP2eVb9JI6Phsv
Very helpful content Thanks you so much ❤
Very well explained,
One doubt what is the use of jwt here?
I cant see any!
This video is a gem💎. Loved it. Waiting for the next one. 😍
Thank you so much 😁
I really agree with your comment
nice explanation🙏
Thanks a lot for this video... waiting for the next ....
straight to point ..
bestest video ever
everything is explained in a very good way, but try to use dark mode🤧
Thanks but mujhe samjh nahi aa rha aisa kya julm kardiya light mode ne...
@@CheezyCode eyes ko tease krta h bro🤡🤌
Soni ji ye fomo hai...😁
Is it possible to redirect to login page if the user is not logged in using jwt?
Very helpful video
Such a good video! Easy to understand! Can we get the source code for these!
Yes...will push it soon on GitHub
@@CheezyCode hi please upload bhai, need it , thanks in advance
Do we really need to check the existence of user on signup using findone method. Can't it simply returns error if we defined the userName or email unique in the mongoose schema?? Just want to know what's the best practice.
Clear cutt
Light theme
Greatly sum up JWT
Thanks Muaz
where is github repo of your this code?
Sir, so simply and in a very effective way you taught this topic..I had learnt express from some other youtube channel also, but the concept of JWT wasn't much cleared there and then I Searched for other channels and found this awesome playlist...thanku so much for making it..I request you to please also make a video on the same topic but with data that comes from any login signup form in browser...Hope you will..!
🤘 sure
Excellent 👌
Love this❤
hey i want to exclude the password from the response , from all the apis by default if getting the userdetails it must not send password !
Good explanation ... nice video
Thank you Prashen
sir, mera password match ni kar rha...error de rha hy..ab keya karo...code sab kuch same hi hy..
ap mujhe es ka code send kar den... p;lzz..
Sir isi tutorial me please socket bhi padha do or uski implementation android me please sir
Aage dekhte hai ...
Plzz make a complete tutorial of nodeJs
Can i create it with sql server ?
PRO 😍
Thanku sir
Thanks Rishikesh
great Effort
I created same code but in postman not getting back and response, dada is not added in my db
Please use exact status code intead of range
Like for exiting user it should be 409 not 400
One more thing please also make refresh tokens scope types etc.
Won't be covering refresh token in current set of videos....plan is to quickly setup an api with android app...
This apis hosted in our local machine...how will we access these apis through Android project
Will host it on Heroku... although you can test it via localhost as well
@@CheezyCode ok sir..
sir can u show models code for note.js
My code is exactly same as yours, the code gives an error saying "Error: data and salt arguments required". Please Help!
Postman mein POST send krne se pehle Body- raw - json ke andar Username pass email likh rhe ho ?
Sir kotlin practice series banaye please 🥺
karte hai ispe kuch bro
sir mujhay problem a rha ha k "jwt.sign is not a function" mry khyal ma ye shyd outdated ho gya ha is liye ye work hee nai kr rha...please age ap mjy is error ka solution bta dn
jsonwebtoken sahi se install hua , sahi se import kiya?
Where may I get this source code ?
github.com/CheezyCode/NotesAPI
Kaha the sir abhi tak ☹️
Sir aaj video aayegi na ??
Yes 🤘
Please upload more videos fast
Slower is better...chah rahegi toh video dekhoge....course toh 1 din mei upload hojayega but value nahi rahegi...
@@CheezyCode Agree with you, I started my career watching your videos, keep posting amazing content
username is undefind error any solution ?
First compare your code with this - github.com/CheezyCode/NotesAPI
@@CheezyCode ok sir ....
@@CheezyCode I cloned the git repostory and it still didnt work
Source code available hai ?
GitHub CheezyCode Profile
sir code to de do error ky aa raha wo dhudhna hai
Check GitHub - already committed
Please share code for this sir as zip aur git repo.
github.com/CheezyCode/NotesAPI
pro use white background
Light mode is 😒😒
Sir, es ka code kha se mele ga? github link send kare
github.com/CheezyCode/NotesAPI
bhiya mujhe body smjh nahi ara kyaa hota h yeee
Post Karte hai toh kuch info server ko bhejoge....wo info ko body kehte hai...why body?
Http protocol - 2 bande ke baat karne ka tareeka hota hai...client ko server se baat karni hai toh uska tareeka hona chaiye jisse dono samjh paaye ki kya baat ho rahi h...issi ke liye http protocol h
Ab iss protocol mei kuch parts hai - headers, body
Header meta info ke liye hote h
Ya kuch additional info like token
Body mei actual info bhejte hai ki server pe kya save karana chahte ho
@@CheezyCode okkkk bhiyaaa ho ske to ispe video banana.....
bro light themeeee!!!!!!!
Next time pls use dark theme
Sir upload video parday
koshish hai daily kar paye....kuch din break leke buffer karte hai...
Sir please use black theme
bro cursor issue hojata hai...cursor ki alag feel hai dikhne ki...tutorials ke liye white is preferrable.
jab email and password same hoga tabhi tho token generate hoga wo wali condition tho bhul gye aap
😐
@@CheezyCode ha yeh wala mereko bhi thora confusion laga what if kisika email aur dusreka password de diya to bhi authenticate ho jayga lag raha hai not sure thora batate to accha hota beginner hu.🙂 koi object wala scene hai kya ki same object ko hi access karega.
Sir I'm getting this error TypeError: Cannot destructure property 'username' of 'req.body' as it is undefined.
const { username, email, password } = req.body;
^
TypeError: Cannot destructure property 'username' of 'req.body' as it is undefined.
pls help
index.js mei express.json() call kiya h?
@@CheezyCode Ha sir kiya tha lekin below routes declaration, place it above and it works.
Thanks. Can you please start react native as well once this Node series will get finished.
Who the fk uses Light Theme
Error: data must be a string or Buffer and salt must either be a salt string or a number of rounds
at Object.hash (D:\100daysofCode\DEV\jwt
ode_modules\bcrypt\bcrypt.js:144:17)
at D:\100daysofCode\DEV\jwt
ode_modules\bcrypt\promises.js:29:12
at new Promise ()
at module.exports.promise (D:\100daysofCode\DEV\jwt
ode_modules\bcrypt\promises.js:20:12)
at Object.hash (D:\100daysofCode\DEV\jwt
ode_modules\bcrypt\bcrypt.js:133:25)
at signup (D:\100daysofCode\DEV\jwt\src\modles\controllers\userController.js:19:46)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
I'm getting this error. How to resolve this? pls help me
Error: data and salt arguments required
at Object.hash (H:\myoldprojects
odepractice
ode_modules\bcrypt\bcrypt.js:137:17)
at H:\myoldprojects
odepractice
ode_modules\bcrypt\promises.js:29:12
at new Promise ()
github.com/CheezyCode/NotesAPI
I am having the same problem. How did you fix it?
ERROR IS
"TypeError: jwt.sign is not a function
at createtoken (C:\Users\Dell\Desktop\NODE JS AUTHENTICATION AND COOKIES\src\app.js:120:24)
at Object. (C:\Users\Dell\Desktop\NODE JS AUTHENTICATION AND COOKIES\src\app.js:124:1)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47
[nodemon] app crashed - waiting for file changes before starting..."
github.com/CheezyCode/NotesAPI - refer this repo and compare your source code....make sure versions are same in package.json