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