Learn The MERN Stack - JWT Authentication

preview_player
Показать описание
In this video, we will secure our API by adding JWT authentication

💻 Code:

👇 Full React 2022 Course With $12.99 promo:

👇 Website & Courses:

💖 Show Support

👇 Follow Me On Social Media:

Timestamps:
0:00 - Intro & Current Code
1:45 - What is JWT?
3:10 - User Model
6:00 - Add User to Goal Model
7:21 - User Routes & Controller Functions
14:38 - Register User
18:58 - Hash Password
22:07 - Authenticate User
25:40 - Generate JWT
29:54 - Auth Middleware
37:34 - Protecting Routes & getMe()
41:25 - Protect Goal Routes
43:10 - Get Only Users Goals
44:00 - Setting a User Goal
47:00 -Update a User Goal
49:30 - Delete User Goal
Рекомендации по теме
Комментарии
Автор

Thank you for providing these latest MERN tutorials Brad, they came at a great time. I just finished the code along for this tutorial and the MERN stack tutorial you dropped a few days ago. I did manage to get everything working per the videos specs, but of course, the true learning happens when I'm able to take this code and apply to my own projects - breaking stuff along the way. Thanks again for providing friend. I look forward to the front end portion.

rashadnelson
Автор

Just wanted to say how much I appreciate the effort you've put in to help fellow developers like myself grasp the concepts that you are covering. You have a way of methodically and calmly explaining something, that just make it make sense. Everything seems to clean and easy after following your tutorials. Keep up the amazing work! You truly are an inspiration to all of us, from where you came from to where you are now

RRCaddick
Автор

Brad,

Thanks for the MERN Stack series. You hide the complexity with the way you explain it. You're one of those few teachers that really know how to explain things. I'm eager and can't wait to see how/what you'll be explaining in the front-end. Wish you the best!

felixmelendez
Автор

Simply the level of details in this tutorial is insane!
Thank you Brad!

khalidelgazzar
Автор

less than 1 hour and a lot of well-organized info, thank you for your efforts!

fadygamilmahrousmasoud
Автор

This Project is awesome, I love the way you explain things, I feel like I've been coding for years! Thank you so much for your dedication and hard work. Looking foward to become a MERN Stack Developer at the end of this Project.

Abdiaspeguero
Автор

Amazing tutorial! This cleared a lot of doubts for me regarding JWT and protecting routes. Cant wait for the frontend part.

SimPwear
Автор

Insane quality on this series so far. Very happy about it.

alpaca_growing_kit
Автор

These tutorials have made so many things more clear to me!! You're an excellent teacher, thanks so much.

erics
Автор

What a phenomenal tutorial Brad. I was able to follow along and get the whole thing working. I learned so much. It was challenging from start to finish especially once it got to the authorization and authentication. I still have a lot to learn about these concepts. Thank you so much for this!

mikembsc
Автор

Thanks for another great lesson.

I'm adapting this to a postgreSQL backend using pg-promise instead of mongoose, and your instructions still help a lot!

RameshKumar-mvjd
Автор

Thank you so much for this sir! I commend your dedication and hard work for giving us a wonderful content!

monciego
Автор

Phenomenal video as always Brad. Your blend of building projects and explaining the concepts you are implementing makes learning so much easier. This whole video series so far has been great at teaching me Mongo/Mongoose and reviewing JWT. Thank you for all that you and your team do.

mattbaillie
Автор

As always Brad, you're one of the best teach out there, and Brad has a goal! To educate entire humanity 😇 51:20

shivansh
Автор

I'm trying to learn node and this series seems to be a top notch for learning MERN-STACK❣️❣️ Thanks Brad, for such an amazing content 😍 lots of love & respect❣️

salmanrafi
Автор

Learned a lot! Thanks for the content Brad. Great pace and thorough

carlossosa
Автор

This series seems to be a very interesting one. I am already working Node. But I am hopeful to learn few advance features in upcoming videos. Thanks a lot Brad.

ishtiakahmed
Автор

I love this kind of series....seriously love it. Very long time never see brad doing this kind of series....

cubedev
Автор

Thank you for awesome video Brad! I love your quiet and slow voice 😍

dejvisekkanal
Автор

Me : Searching youtube for JWT authentication, 7 minutes ago.
Brad : Hold my payload.

Honestly, superb timing!

tapastrivedi