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:
š 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:
- Intro & Current Code
- What is JWT?
- User Model
- Add User to Goal Model
- User Routes & Controller Functions
- Register User
- Hash Password
- Authenticate User
- Generate JWT
- Auth Middleware
- Protecting Routes & getMe()
- Protect Goal Routes
- Get Only Users Goals
- Setting a User Goal
-Update a User Goal
- Delete User Goal