PassportJS Authentication System

A simple yet secured passport js jwt based authentication system that can be used with any kind of express application.

๐Ÿ›‚ Introduction

This project is a minimal and extensible authentication system built with Passport.js, aimed at simplifying user login flows using local and OAuth strategies. Whether you're building a personal app or a production-grade platform, this boilerplate gives you a clean foundation to get started quickly.

โœจ Features

  • Plug-and-play authentication with Passport.js
  • Local login and registration
  • OAuth integration with Google and GitHub
  • Clean and minimal folder structure
  • Tailwind CSS-based styling

๐Ÿงฐ Tech Stack

  • Node.js
  • Express.js
  • Passport.js
  • MongoDB (with Mongoose)
  • Tailwind CSS

๐Ÿ“ฆ Dependencies

  • express โ€“ Web framework for Node.js
  • passport โ€“ Authentication middleware
  • passport-local โ€“ Local strategy for Passport
  • passport-google-oauth20 โ€“ Google OAuth 2.0 strategy
  • passport-github2 โ€“ GitHub OAuth strategy
  • mongoose โ€“ MongoDB object modeling
  • bcrypt โ€“ Password hashing
  • dotenv โ€“ Environment variable loader

๐Ÿ“š Documentation

You can find the full documentation and setup guide on the Documentation and the github repo at : GitHub repository.