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