Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Learn the MERN Stack - JWT Authentication

Traversy Media via YouTube

Overview

This course teaches how to secure an API by implementing JWT authentication. The learning outcomes include understanding JWT, creating user and goal models, implementing user routes and controller functions, registering users, hashing passwords, authenticating users, generating JWT tokens, using auth middleware, protecting routes, and performing CRUD operations on user goals. The course focuses on practical coding examples and is suitable for individuals interested in backend development and API security.

Syllabus

- 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.

Taught by

Traversy Media

Reviews

Start your review of Learn the MERN Stack - JWT Authentication

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.