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

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course demonstrates how to add JWT-based authentication and authorization to a CRUD REST API. It covers user registration and login, password hashing, token generation, authentication middleware, protected routes, and user-specific goal operations.

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.