Skip to content

Auth With Express is a modular Node.js authentication template by Vikas Tiwari, featuring secure user registration, login, password hashing, and session management. Built with Express.js, Passport.js, and MongoDB, it’s perfect for developers looking for reliable authentication solutions in web applications.

Notifications You must be signed in to change notification settings

vikas809028/Auth-With-Express

Repository files navigation

Auth With Express

Auth With Express is a robust authentication system built using Node.js and Express.js. This repository provides a modular template for implementing secure user authentication, session management, and access control in modern web applications.

🌟 Overview

This project demonstrates best practices for user registration, login, password hashing, and session handling with Express. It’s ideal for developers seeking a reliable starting point for secure authentication in their Node.js projects.

🚀 Tech Stack

  • Backend Framework: Node.js, Express.js
  • Authentication: Passport.js, JWT, bcrypt
  • Database: MongoDB (Mongoose)
  • Session Management: express-session
  • Validation: express-validator

🛠️ Features

  • User registration and login
  • Password hashing with bcrypt
  • Session-based authentication and JWT support
  • Role-based access control
  • Input validation and error handling
  • Modular code structure for easy integration

📦 Getting Started

  1. Clone the repository:
    git clone https://github.com/vikas809028/Auth-With-Express.git
    cd Auth-With-Express
  2. Install dependencies:
    npm install
  3. Configure environment variables in .env (see .env.example)
  4. Start the development server:
    npm start
  5. The API will be available at http://localhost:3000

📌 Usage

  • Integrate authentication routes into your existing Express application.
  • Refer to the API documentation for available endpoints and payload formats.

🤝 Contributing

Contributions, suggestions, and bug reports are welcome! Please open issues or submit pull requests.

📄 License

Distributed under the MIT License.

📬 Contact


Built with ❤️ by Vikas Tiwari (IIT Kanpur)

About

Auth With Express is a modular Node.js authentication template by Vikas Tiwari, featuring secure user registration, login, password hashing, and session management. Built with Express.js, Passport.js, and MongoDB, it’s perfect for developers looking for reliable authentication solutions in web applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published