What are Cookies in NodeJS?

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

In this tutorial video, you will see what are cookies in browsers and two main authentication patterns i.e via Cookies and Headers

My Gears

Disclaimer: All the links above are affiliate links.

Social Links

Video Titles
What are Cookies in the Browser?
Cookies in Nodejs?
Authorization Headers
Cookie-based Authentication

Tags
#nodejs #authentication #javascript #expressjs #mongodb #mernstack #developer #api #https #server #javascriptinhindi #webdevelopment #webapp #realtimeapp #serverside #nonblockingio #tech
Рекомендации по теме
Комментарии
Автор

The thing I love about this playlist is using simple language, very easy to understand and please always give the scenario of how things work at enterprise level in your future video.😌

YashAmbekar-jp
Автор

Thanks sir taking my doubts..it's clear now

shubhamgupta-bltr
Автор

Bro you are explaining very deep things in practical superb bro 🎉🎉

weforyouweb
Автор

Excellent Videos Piyush... Explaining it in such a simple way.. makes it so easy

santoshdhariwal
Автор

If you encounter this error: Cannot read properties of undefined (reading 'split'), Follow the given steps:

1. first make changes only to handleLogin controller and send token as json instead of setting a cookie.
2. Now in postman, make POST req to /user/login and generate a token.
3. Now make change to our middleware functions i.e to checkAuth and restrictLogin middlewares.
4. And now finally make GET req to homepage and set the authorization header in postman.

Reason: If you make changes to the middlewares first and then try to generate the token it will result in error because we don't have authorization header during initial token generation and the checkAuth middleware is still executed. Hence generate the token first and then make necesarry changes in the middlewares.

Hope it helps!

mahendra.k
Автор

This tutorial of nodejs is more useful to any other paid tut .
Thank you so much sir such a amazing series ❤️ 🙌 👏

pradeeppop
Автор

Bro just don’t stop posting videos u r just amazing tutor❤

lillyput
Автор

No words, how you explain deep fully, at each word meaning fully explain😊 Thank you, Create An YouTube channel and share your knowledge📚

ageshalbhandare
Автор

Thank You Sir, It was one of the Best explanation of cookies on youtube.

rohitlochib
Автор

Got to know many things this video thank you for the lecture😇😇

sutharjay
Автор

Great work, it has compelled me to like and subscribe.

satyanshgarg
Автор

literally no words for uh bro !...excellent explaination 😃😃

lakshyakhushalani
Автор

that was so useful and deep knowledge for newbie. awesome bro ❤.

Muzafar.A
Автор

Thanks bhaiya for the video tutorials. 🥳🥳🔥🔥🤘🤘

mma-dost
Автор

I thought the same even though I used to do the same in my MERN stack projects what shubham has asked
But Thanks Piyush for getting us more clear on it also I found that OAuth and NextAuth use the same technique while authenticating users on each request they utilize tokens stored in the cookies and get users' data from it!

Very very useful topic you have covered

Solo_playz
Автор

Thank You Piyush For this great video!!! ; )

heyOrca
Автор

can you explain refresh token and access token?

imPrathamDev
Автор

16:10 what are you trying to do 🤔
According to mdn
Fir domain value -
"Only the current domain can be set as the value, or a domain of a higher order"

"A cookie for a domain that does not include the server that set it should be rejected by the user agent."

iganic
Автор

Thank you so much for sharing this. Very good explanation :)

mayankbadika
Автор

From where you learn all this so well??

khushichaurasia