A Node.js backend server for implementing password reset flow to your application.
Here's an overview of the packages used for this project.
- express: Web framework for building the backend API
- mongoose: MongoDB object modeling tool
- bcryptjs: Library for hashing passwords and tokens
- jsonwebtoken: For generating secure tokens
- dotenv: Loads environment variables from .env file
- validator: Input validation and sanitization
- cors: Enables cross-origin requests from frontend
For the password email notification, we use SendLayer's API.
The link to view the complete tutorial how to implement password reset in Node.js