This is a simple repo which contains the logic for sending one-time password reset links valid for 15 minutes (though time can be changed in code).
This repo does NOT use any email sending API or any Database, the user is hard-coded and the link is only logged in console. That is for you to implement. This ONLY contains the logic.
Step 1: Clone the repo
git clone https://github.com/trulymittal/forgot-password.git
Step 2: cd into the cloned repo and run:
npm install
Step 3: Start the demo by
npm run dev
You can fork this repo and send me a PR.
This project is licensed under the MIT License.