Skip to content

πŸ” A secure password reset backend built with Node.js, Express, MongoDB, and Nodemailer. It includes features like JWT-based token generation, email verification, and secure password update via RESTful APIs - essential for authentication workflows in modern web applications.

Notifications You must be signed in to change notification settings

Aarthi1720/Password-Reset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” Password Reset App - Backend

This is the backend server of a full-stack authentication and password reset application. It handles secure user registration, login, forgot password, and password reset via email using Node.js, Express, MongoDB, and JWT.


πŸš€ Features

  • πŸ“ User Registration & Login
  • πŸ”‘ JWT-based Authentication
  • πŸ“© Forgot Password (via email)
  • ♻️ Secure Reset Password (token with expiry)
  • πŸ” Password hashing with bcryptjs
  • πŸ’Œ Email handling via nodemailer
  • πŸ” Reset token securely generated using built-in crypto module
  • 🌐 CORS enabled for frontend integration
  • πŸ“¦ Environment variables for secure configs

πŸ› οΈ Tech Stack

  • 🟒 Node.js – JavaScript runtime for backend
  • πŸš‚ Express.js – Web framework
  • πŸ—ƒοΈ MongoDB – NoSQL database
  • πŸ” JWT (jsonwebtoken) – Token-based authentication
  • πŸ”‘ bcryptjs – For password hashing
  • πŸ§ͺ crypto – Built-in Node module for generating secure tokens
  • πŸ’Œ Nodemailer – For sending reset password emails
  • 🧬 dotenv – Manage environment variables

πŸ”— API Endpoints

Method Route Description
POST /api/register Register new user
POST /api/login Login and get token
POST /api/forgot-password Send reset link
POST /api/reset-password Reset password

πŸ§ͺ Testing

You can test the backend using:

  • βœ… Postman (send requests manually)
  • βœ… Frontend React App (connected via Axios)

About

πŸ” A secure password reset backend built with Node.js, Express, MongoDB, and Nodemailer. It includes features like JWT-based token generation, email verification, and secure password update via RESTful APIs - essential for authentication workflows in modern web applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published