Mysql Registration Passport

screenshot of Mysql Registration Passport

User registration service built with React, PassportJS, JWT auth, Express, Swagger endpoint testing, MySQL DB and a docker-compose file to spin it all up.

Overview:

The MySQL Registration with JWT & Passport Authentication application is a full-stack MERN app designed for user registration and authentication. The app allows users to register in the MySQL database, log in, view and update their profile, and delete their account. It utilizes a docker-compose file to easily set up a local MySQL database, API module, and client module simultaneously with a single command.

Features:

  • User Registration: Allows users to create an account and store their information in the MySQL database.
  • JWT Token Authentication: Generates a JWT token upon user login for secure authentication of protected routes.
  • Passport Authentication: Utilizes Passport local for user authentication on unprotected routes and Passport JWT for protected routes.
  • Password Reset Email: Enables users to reset their password via email with a time-limited link for added security.
  • Swagger Documentation: Includes Swagger documentation for API testing, accessible at http://localhost:3003/api-docs/.

Summary:

The MySQL Registration with JWT & Passport Authentication app provides a comprehensive solution for user registration and authentication. With features like JWT token generation, Passport authentication, and Swagger documentation, the app offers a secure and efficient user experience. Setting up the application is simplified through docker-compose, making it easy to start the local servers.