{"id":18207593,"url":"https://github.com/snehamgithub/backend-user-authentication","last_synced_at":"2026-04-11T09:39:48.688Z","repository":{"id":260513820,"uuid":"881491859","full_name":"SnehaMgithub/Backend-User-Authentication","owner":"SnehaMgithub","description":"Backend User Authentication","archived":false,"fork":false,"pushed_at":"2024-10-31T18:19:42.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T19:52:43.292Z","etag":null,"topics":["bcrypt","dotenv","expressjs","jwt","mongoose","nodejs","nodemon"],"latest_commit_sha":null,"homepage":"https://backend-user-authentication.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SnehaMgithub.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-31T17:18:18.000Z","updated_at":"2024-10-31T18:19:45.000Z","dependencies_parsed_at":"2024-10-31T19:19:07.976Z","dependency_job_id":"9cc21a8a-ea1b-4591-bda9-7d3c8bb3a49e","html_url":"https://github.com/SnehaMgithub/Backend-User-Authentication","commit_stats":null,"previous_names":["snehamgithub/backend-user-authentication"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnehaMgithub%2FBackend-User-Authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnehaMgithub%2FBackend-User-Authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnehaMgithub%2FBackend-User-Authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SnehaMgithub%2FBackend-User-Authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SnehaMgithub","download_url":"https://codeload.github.com/SnehaMgithub/Backend-User-Authentication/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247721928,"owners_count":20985083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bcrypt","dotenv","expressjs","jwt","mongoose","nodejs","nodemon"],"created_at":"2024-11-03T13:03:37.950Z","updated_at":"2025-10-05T18:15:10.648Z","avatar_url":"https://github.com/SnehaMgithub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Password Reset \n\nThis project implements a **Password Reset Flow** using `Node.js`, `Express.js`, `Mongoose`, and `React` on the frontend, following the described flow. The backend handles user registration, login, and password reset functionality, while the front-end provides a user-friendly interface built with `React` and styled with `Bootstrap`.\n\n## Task Details\n\n- **Forget Password Page**: The user enters their email address on the forget password page.\n- **Check User Existence**: The server checks if the email exists in the database.\n  - If the user is not found, an error message is returned.\n  - If the user exists, a random string is generated.\n- **Send Reset Link**: The random string is stored in the database and emailed to the user as part of a reset link.\n- **User Clicks Link**: The user clicks the link, which takes them to a password reset page.\n- **Validate Reset Token**: The random string from the link is verified.\n  - If valid, the user is shown a form to enter a new password.\n  - If the string does not match, an error message is displayed.\n- **Password Reset**: After entering the new password, and the password is updated.\n  - If the reset is successful, the user can now log in with their new password.\n\n### 2. Technical Specifications\n\n- **Front-End Framework**: React with Bootstrap for UI design.\n- **Back-End Framework**: Node.js and Express.js for handling authentication and password reset logic.\n- **Database**: MongoDB with Mongoose for data management and user authentication.\n\n## Prerequisites\n\nMake sure you have the following installed:\n\n- **Node.js** (v14+)\n- **MongoDB** (local or cloud instance)\n- **React** (for front-end)\n- **Postman** or **cURL** (for API testing)\n\n# Postman Collection\n\nYou can test these API endpoints using Postman. The following link provides a Postman collection that contains all the necessary endpoints for registration, login, forgot password, and password reset functionalities.\n\n[Postman Collection for Password Reset API](https://documenter.getpostman.com/view/39168825/2sAY4vgND2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnehamgithub%2Fbackend-user-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnehamgithub%2Fbackend-user-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnehamgithub%2Fbackend-user-authentication/lists"}