Vigyata.AI
Is this your channel?

Learn The MERN Stack - JWT Authentication

250.9K viewsΒ· 5,235 likesΒ· 52:29Β· Feb 10, 2022

πŸ›οΈ Products Mentioned (5)

In this video, we will secure our API by adding JWT authentication πŸ’» Code: https://github.com/bradtraversy/mern-tutorial πŸ‘‡ Full React 2022 Course With $12.99 promo: https://www.udemy.com/course/react-front-to-back-2022/?couponCode=REACTF2BFEB2022 πŸ‘‡ Website & Courses: https://traversymedia.com πŸ’– Show Support Patreon: https://www.patreon.com/traversymedia PayPal: https://paypal.me/traversymedia πŸ‘‡ Follow Me On Social Media: Twitter: https://twitter.com/traversymedia Instagram: https://www.instagram.com/traversymedia Linkedin: https://www.linkedin.com/in/bradtraversy 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

🎬 More from Traversy Media