Zach, one thing I really like about your videos is that you don't edit out the mistakes when you make them, but correct them in full view. I find this useful as it gives me the opportunity to think why something didn't work too. It is a really helpful learning aid (well for me it is).
Can't thank you enough for this tutorial. I have also watched several tutorials that have left me with more doubts than answers, so I appreciate how thorough this tutorial is. Amazing job!
I ike the guy's tempo. A lot of youtubers try to keep videos short by talking really fast - to the point where it becomes impossible to follow and comprehend. This guy makes it just right - very easy and pleasant to listen. Good job!
To my name sake, this is really well done! I am a mid level node developer and found the steps and extra bits you gave to be outstanding and more then worth the time spent going through it. Well done sir!
Probably the best tutorial online for user authentication! Excellent delivery of the middleware concept with user authentication flow. @Zach Gollwitzer, you're a legend! Keep up the great work.
@@ogunsadebenjaminadeiyin2729 Websites that we visit has a signup, sign In functionality which helps to authenticate the user. The series is about authentication and also authorization. It is one of the basic things in backend development. Hope you got your answer
This is the most important tutorial I've ever seen about authentication. The topics presented in this video are invaluable to me and many other devs. Thank you so much Zach. I will refer this tutorial to anyone wanting to learn authentication in nodejs apps. 🚀
A really good tutorial, so if anyone is watching it rn, I would like to explain some stuff you need to know, 1. don't use the way he uses connect-mongo bc I struggled doing it like him, that's bc this tutorial is a bit outdated, there is a new way of using connect-mongo , look at the docs for it... 2. Once you get to the local strategy it will feel a bit overwhelming so I recommend installing and work and code along, generally look for another tutorial then look for his tutorial at that part just to understand some stuff he goes throw quickly, like hast, salt, etc. That's what I did myself.
I really appreciate your compassion and desire to make no assumptions in your descriptions. As a beginning developer, I have experienced exactly what you are talking about. Someone breezes through a concept, and I am left thinking, "Was that supposed to be straightforward?" Thank you so much for acknowledging how many complicated steps go into this process and helping to break it down.
This is a really phenomenal job of explaining this topic and helped me in my work immensely. The only video I've found that didn't talk over my head. Thank you Zach!
Thanks, that was amazing! The instructor teaches concepts of authentication, how to implement without abstraction and how tech like passport.js actually works under the hood.
thank you! This was great! I had watched a few quick tutorials elsewhere but had no idea why I was copying and pasting all the stuff they prescribed. This gave me an actual understanding of what everything is doing.
For those having newest version there are slight tweeks: const MongoStore = require('connect-mongo'); /** not require('connect-mongo')(session) **/ connection.on('open', () => { /** not 'connecting' **/ console.log('connected'); }); app.use(session({ /** use MongoStore.create({mongoUrl:process.env.DB_URI}) in the store option **/ secret: process.env.SECRET, resave: false, saveUninitialized: true, store: MongoStore.create({mongoUrl:process.env.DB_URI}), cookie: { maxAge: 1000 * 60 * 60 * 24 // Equals 1 day (1 day * 24 hr/1 day * 60 min/1 hr * 60 sec/1 min * 1000 ms / 1 sec) } }));
Also if anyone is watching this and using vite and is having trouble getting the request cookie after the server sets the cookie, then you are probably running into a sameSite issue where the browser is not attaching the cookie to the request header for security reasons. A workaround is to set up a proxy server in your vite config file. Just a heads up. Holler if you have any questions.
Thank you very much for teaching so conscientiously. It was obvious you cared that people who are trying to learn will understand. I watched someone else's video and he went so fast and didn't explain a lot, and that can get frustrating and discouraging. It's so nice that you guide us at a proper pace for students.
first of all introduction got hooked me up like the guy read my mind i was using firebase for authentication but i think now i am ready for my owm backend.
Thank you for your efforts. Sharing knowledge is easy but delivering in such a way that everyone can understand is very much difficult. We need a hell a lot of preparation for that. Hats off to your efforts.
big fan of your teaching method sir, clear and concise with great detail...hoping you to get more exposure among people so that they can learn from you, please release reactjs course I really wanna learn from you, because I have been scratching my head with so many tutorials on youtube and didnt get help. thank you sir
Thanks ! Zach for the great tutorial ! it's really awesome course on the User Authentication ! All 6 :13 hours is really worth, loaded with full of information , which I can really apply .
I appreciate the info, Zach. I do want to point out, at 3:11:00, you do not generate the EC keys you were talking about, instead, you generated RSA keys.
Hello Zach I am a react and vue developer, can't u guys provide the same vodeo but adding a different last part one for vue and one for react i have been learning a lot here and would love to see more
@@chiragarora9616 u can mind ur own business and honestly for me I have running projects with auth witjout pasdport just node, express and jwt for the token
Ah so it doesnt cover logging in with Google or FB? I don't want to bother my visitors with them filling in forms and use their brains for a few seconds.
I'm considering doing a social login tutorial on my channel. It is definitely on the list. Also, Passport is a very widely-scoped middleware. Once you understand the core functionality, additional strategies will be easier. In addition, the JWT and crypto sections of this course will be very helpful for understanding delegated auth (like OAuth 2.0) since it uses these heavily for its flows and tokens.
You explain it very well thank you. But I think if we want to implement just userName and password authentication then passportjs should not be used. We should use express-session only for that. And implement all the functions for authentication and authorization. Passportjs is helpful when we want to use more than 1 strategies. This is how i think. 😇
I watched this on Zach's channel first. For anyone wondering, it's absolutely worth to to follow the entire thing!
from twitter to youtube!
Zach, one thing I really like about your videos is that you don't edit out the mistakes when you make them, but correct them in full view. I find this useful as it gives me the opportunity to think why something didn't work too. It is a really helpful learning aid (well for me it is).
debugging is super important in programming too, it gives you an idea on how to debug your code for beginners out there
Can't thank you enough for this tutorial. I have also watched several tutorials that have left me with more doubts than answers, so I appreciate how thorough this tutorial is. Amazing job!
I ike the guy's tempo. A lot of youtubers try to keep videos short by talking really fast - to the point where it becomes impossible to follow and comprehend. This guy makes it just right - very easy and pleasant to listen. Good job!
Agreed
Definitely. When I hear someone talking about their "dense" content I immediately raise an eyebrow.
To my name sake, this is really well done! I am a mid level node developer and found the steps and extra bits you gave to be outstanding and more then worth the time spent going through it. Well done sir!
Finally a video where I don't feel like a parrot, just copying what they're typing trying to understand.
I wasn't the only parrot lol
you weren't the only parrot bruh
Probably the best tutorial online for user authentication! Excellent delivery of the middleware concept with user authentication flow. @Zach Gollwitzer, you're a legend! Keep up the great work.
That was full of information, especially the distigush of hashing and encryption, I watched the whole 6 hours of it. 🙂🙂
The video helped me a lot to understand authentication with passport, jwt, session-express and many other things, really thank you very much :')
I watched this series few days ago. The series is just awesome & perfect for beginners.
Please can you describe what this series is about, for a novice?
@@ogunsadebenjaminadeiyin2729 Websites that we visit has a signup, sign In functionality which helps to authenticate the user. The series is about authentication and also authorization. It is one of the basic things in backend development. Hope you got your answer
where is the series/playlist?
@@panomapet9441 actually Zach has his own youtube channel & he uploaded this whole 6hr long video as a series in his channel.
@@md.siddiq7165 I got his channel. Thanks
Finally! This is what I've been looking for for months. Like you said in the video, it's always "learn authentication in 5 minutes".
This is the most important tutorial I've ever seen about authentication. The topics presented in this video are invaluable to me and many other devs. Thank you so much Zach. I will refer this tutorial to anyone wanting to learn authentication in nodejs apps. 🚀
A really good tutorial, so if anyone is watching it rn, I would like to explain some stuff you need to know,
1. don't use the way he uses connect-mongo bc I struggled doing it like him, that's bc this tutorial is a bit outdated, there is a new way of using connect-mongo , look at the docs for it...
2. Once you get to the local strategy it will feel a bit overwhelming so I recommend installing and work and code along, generally look for another tutorial then look for his tutorial at that part just to understand some stuff he goes throw quickly, like hast, salt, etc.
That's what I did myself.
I haven’t completed the video yet. But I must say..thank you for being such a clear and concise teacher!
I really appreciate your compassion and desire to make no assumptions in your descriptions. As a beginning developer, I have experienced exactly what you are talking about. Someone breezes through a concept, and I am left thinking, "Was that supposed to be straightforward?" Thank you so much for acknowledging how many complicated steps go into this process and helping to break it down.
This is a really phenomenal job of explaining this topic and helped me in my work immensely. The only video I've found that didn't talk over my head. Thank you Zach!
This is one of the best tutorials I have ever encountered! Thanks so much for your time and effort. I learned a lot.
Thanks, that was amazing! The instructor teaches concepts of authentication, how to implement without abstraction and how tech like passport.js actually works under the hood.
I have coded along up-to Express MIddlewares so far, never have these concepts been clearer than it is now after watching your video. Thanks a lot!!
Zach. you are a blessing. where have you been?
ten minutes into the video and am already feeling great...
If you are on the fence about this tutorial, watch it until at least the passport section ends. Phenomenal lesson.
First authentication video and I am confident will master it soon. Thanks Zach
Watched this complete tutorial and it was one of the best and comprehensive tutorial I have ever watched. Thanks Zach!
Your deep understanding of what you didn't understand made that tutorial easy to understand! :-) Thank you.!
Great middleware explanation! Thank you! :-) I am continuing to watch that further!
Watched 6 hours in 2x speed and still could get the whole thing. Pretty good explanation.
thank you! This was great! I had watched a few quick tutorials elsewhere but had no idea why I was copying and pasting all the stuff they prescribed. This gave me an actual understanding of what everything is doing.
Your videos are great! Thorough and beginner-friendly but brings you through the whole thing. Perfect!
This tutorial clear the confusion out of me about authentication and how cookies work
This cleared up so many of my questions as a starter especially on topics like cookies, sessions, and other accompanying middlewares. Bravo!
fantastic video. Spent an entire work day watching this video and it was well worth it!
I have a feeling this is gonna be great. Can't wait to finally understand session and jwt
For those having newest version there are slight tweeks:
const MongoStore = require('connect-mongo'); /** not require('connect-mongo')(session) **/
connection.on('open', () => { /** not 'connecting' **/
console.log('connected');
});
app.use(session({ /** use MongoStore.create({mongoUrl:process.env.DB_URI}) in the store option **/
secret: process.env.SECRET,
resave: false,
saveUninitialized: true,
store: MongoStore.create({mongoUrl:process.env.DB_URI}),
cookie: {
maxAge: 1000 * 60 * 60 * 24 // Equals 1 day (1 day * 24 hr/1 day * 60 min/1 hr * 60 sec/1 min * 1000 ms / 1 sec)
}
}));
Bro you save my life!
for anyone interested the use of the connect-mongo package is deprecated as well as the mongoose, use this video to grab concepts but no to code along
I have been struggling with connecting my database
Also if anyone is watching this and using vite and is having trouble getting the request cookie after the server sets the cookie, then you are probably running into a sameSite issue where the browser is not attaching the cookie to the request header for security reasons. A workaround is to set up a proxy server in your vite config file. Just a heads up. Holler if you have any questions.
Excellent Tutorial to understand not just Authentication but also the Fundamentals of Cryptography with JWT
I was waiting for this for yearssssss man.
Perfectly! But I would watch all 10 hours of video if there was a continuation about the refresh token 😉
Extremely thorough, worth the time for any beginner!!
This video was a savior for me. I was facing the exact same problems which you mentioned in the beginning.
Thank you very much for teaching so conscientiously. It was obvious you cared that people who are trying to learn will understand. I watched someone else's video and he went so fast and didn't explain a lot, and that can get frustrating and discouraging. It's so nice that you guide us at a proper pace for students.
You are the best! It is clear that you want people to really understand things. Thanks for making this video!
very well organized and explained course, thanks guys for putting out another banger
first of all introduction got hooked me up like the guy read my mind i was using firebase for authentication but i think now i am ready for my owm backend.
Man!! You have taken care of and have explained every other aspect of what you wrote in the code!! This is just amazing. ❤
You are the best! So many doubts, all resolved in just one video. Thank you so much!
your teaching skills are good good good good power 3000
My next day off I am going to consume this whole video. Thank you.
great! worth to follow this man. Great teacher I have ever watched .
I love this guy he is an amazing teacher
Amazing, Now I am going to develop strong backend applications.
This is a great video, not because it did what it has to, but because it amde you familiar with options, what else and etc. nice content.
Thank you for this amazing course! This course and FCC QA curriculum helped me a lot to understand the passport framework.
I can't believe how good this tutorial is. Thank you so much!
Thank you for your efforts. Sharing knowledge is easy but delivering in such a way that everyone can understand is very much difficult. We need a hell a lot of preparation for that. Hats off to your efforts.
thank you Zach this really boost me forward to understand how this working after long time stuck and disappointed about auth subject. thank you :)
big fan of your teaching method sir, clear and concise with great detail...hoping you to get more exposure among people so that they can learn from you, please release reactjs course I really wanna learn from you, because I have been scratching my head with so many tutorials on youtube and didnt get help. thank you sir
This channel is something I recommend to every one.
Such an amazing explanation !! Thanks a million !! Even just for one sec I didn't feel like I am struggling to understand...
Thanks ! Zach for the great tutorial ! it's really awesome course on the User Authentication ! All 6 :13 hours is really worth, loaded with full of information , which I can really apply .
Thanks so much for this video! Very clear and impact my understanding about middlewares/sessions working.
Really nice explanation. Simple yet crucial.
Muchas Gracias Mister Zach, por una gran Catedra......saludos de los andes Peruanos
Wonderful!!
Amazing! I was just looking for this
thank you so much Zach you explained so many things so simply thanks a lot
Amazing , thats all I was looking for 🔥🔥
This is awesome, thanks for sharing. I will watch till the end.
Thanks!! for this beautiful video :)
I appreciate the info, Zach. I do want to point out, at 3:11:00, you do not generate the EC keys you were talking about, instead, you generated RSA keys.
I don't know what to say, thank you very much you are awesome man
This video is phenomenal! Great Work
Nice, precise and concise. I am enlightened 👌
*chuckle* --------------------Complexity--------------> points directly onto him 😂
superb and speechless ...explanation crystal clear
Thanks for JWT Strategy in Angular. That was super useful!
Thank you I was waiting for this course
the course I didn't know I need
i love when somebody says, i"m a full stack developer
This was brilliant. Thanks a TON for sharing it.
This is literally the best video!!
Best tutorial ever on auth 🧡🧡🧡
Very informative...keep at it man!.
Hello Zach I am a react and vue developer, can't u guys provide the same vodeo but adding a different last part one for vue and one for react i have been learning a lot here and would love to see more
You shouldn't ask for literally everything
@@chiragarora9616 u can mind ur own business and honestly for me I have running projects with auth witjout pasdport just node, express and jwt for the token
@Kotetsu Chan i didn't see me asking u? Lol what's wrong with people not being able to mind their own damn business 🤷
no this course is not for beginners but for intermediate developers because i a newbie
thank you very much. it is a very helpful lesson.
Thanks!
Zach is a genius
Great work... Tuto on fire
Thank you for this video its been very helpful one!
Bravo and thank you. Will check your channel .. 👏👏
Very great content, high quality tyou !
should have covered social login with passport, anywhoo Great Content for Free
Ah so it doesnt cover logging in with Google or FB? I don't want to bother my visitors with them filling in forms and use their brains for a few seconds.
I'm considering doing a social login tutorial on my channel. It is definitely on the list.
Also, Passport is a very widely-scoped middleware. Once you understand the core functionality, additional strategies will be easier. In addition, the JWT and crypto sections of this course will be very helpful for understanding delegated auth (like OAuth 2.0) since it uses these heavily for its flows and tokens.
@@zachgoll man you're cool !
@eakerz lol read the docs and implement it yourself...
You explain it very well thank you.
But I think if we want to implement just userName and password authentication then passportjs should not be used. We should use express-session only for that. And implement all the functions for authentication and authorization.
Passportjs is helpful when we want to use more than 1 strategies.
This is how i think. 😇
The best video
6 hour of goodnesssss!!!!!!!!!!!!!!!!!!!!!
Great work 💪
תודה!
This tutorial is criminally underrated. Watched the whole way through. 10/10.
yoo how is your full stack journey?
@@bekiteshome4670 it is at a standstill my brotha, going back to school in the fall and hoping to snag internship opportunities from there.
@@theblackunderflow1842 I hope you get what you want goodluck
@@bekiteshome4670 thanks, good luck to you too!
Awesome!!! TQVM!!