This course is focused on implementing authentication in applications built with the MERN stack—MongoDB, Express.js, React, and Node.js. It explains the principles of securing a MERN application by managing users, encrypting passwords, and generating tokens for session handling. The course examines how to set up authentication middleware in Express.js to protect routes and how to use JSON Web Tokens (JWT) for maintaining user sessions. Participants learn to build login and registration components in React, connect them to a Node.js backend, and handle user authentication state. It also covers best practices for securely storing sensitive information in MongoDB and deploying authenticated applications. By the end of the course, students are capable of creating secure MERN stack applications with robust user authentication systems.
Overview
COURSE DIFFICULTY
Skills Learned
After completing this online training course, students will be able to:
Set up user authentication routes
Implement user controllers and models
Sign up users and password hashing
Validate emails and passwords
Understand JSON Web Tokens (JWT)
Generate and sign JWTs
Create login functionality
Implement React authentication context
Build login and signup forms in React
Develop custom authentication hooks in React
Create a user logout mechanism
Manage initial authentication status in React
Secure backend API routes
Conduct authorized API requests
Implement protected routes in React
Associate data with authenticated users
01. MERN Stack Authentication
- Introduction & Starter Project
- User Routes, Controller & Model
- Signing up & Hashing Passwords
- Email & Password Validation
- JSON Web Tokens (Theory)
- Signing Tokens
- Logging Users In
- React Auth Context
- Login & Signup Forms
- Making a useSignup Hook
- Making a useLogout Hook
- Making a useLogin Hook
- Getting the Initial Auth Status
- Protecting API Routes
- Making Authorized Requests
- Protecting React Routes
- Assigning Workouts to Users
SKILLS LEARNED
Skills Learned
After completing this online training course, students will be able to:
Set up user authentication routes
Implement user controllers and models
Sign up users and password hashing
Validate emails and passwords
Understand JSON Web Tokens (JWT)
Generate and sign JWTs
Create login functionality
Implement React authentication context
Build login and signup forms in React
Develop custom authentication hooks in React
Create a user logout mechanism
Manage initial authentication status in React
Secure backend API routes
Conduct authorized API requests
Implement protected routes in React
Associate data with authenticated users
COURSE OUTLINE
01. MERN Stack Authentication
- Introduction & Starter Project
- User Routes, Controller & Model
- Signing up & Hashing Passwords
- Email & Password Validation
- JSON Web Tokens (Theory)
- Signing Tokens
- Logging Users In
- React Auth Context
- Login & Signup Forms
- Making a useSignup Hook
- Making a useLogout Hook
- Making a useLogin Hook
- Getting the Initial Auth Status
- Protecting API Routes
- Making Authorized Requests
- Protecting React Routes
- Assigning Workouts to Users