{"id":20556932,"url":"https://github.com/pranava007/fsd-auth-backend","last_synced_at":"2026-04-11T03:34:08.563Z","repository":{"id":252209375,"uuid":"839763074","full_name":"pranava007/FSD-AUTH-BackEnd","owner":"pranava007","description":"This is a FSD Regsiter Login Forget-Password","archived":false,"fork":false,"pushed_at":"2024-08-08T10:20:37.000Z","size":3452,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T12:48:07.900Z","etag":null,"topics":["bcryptjs","cors","expressjs","nodejs","nodemailer"],"latest_commit_sha":null,"homepage":"https://glittering-taffy-8bc914.netlify.app","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/pranava007.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-08-08T09:25:11.000Z","updated_at":"2024-08-08T10:22:50.000Z","dependencies_parsed_at":"2024-08-08T11:27:14.306Z","dependency_job_id":null,"html_url":"https://github.com/pranava007/FSD-AUTH-BackEnd","commit_stats":null,"previous_names":["pranava007/fsd-auth-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pranava007/FSD-AUTH-BackEnd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranava007%2FFSD-AUTH-BackEnd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranava007%2FFSD-AUTH-BackEnd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranava007%2FFSD-AUTH-BackEnd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranava007%2FFSD-AUTH-BackEnd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pranava007","download_url":"https://codeload.github.com/pranava007/FSD-AUTH-BackEnd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranava007%2FFSD-AUTH-BackEnd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31668049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bcryptjs","cors","expressjs","nodejs","nodemailer"],"created_at":"2024-11-16T03:33:45.824Z","updated_at":"2026-04-11T03:34:08.533Z","avatar_url":"https://github.com/pranava007.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Authentication and Password Management API \n\nThis project provides a basic user authentication system with functionalities including user registration, login, and password reset. It uses Node.js, Express, MongoDB, and various utility libraries like bcryptjs, jwt, and nodemailer for handling passwords and emails.\n\nKey Features\nUser Registration (/register):\n\nDescription: Registers a new user by hashing their password and storing it securely in the database.\nInputs: username, email, password (all required).\nOutputs: Returns a success message and the registered user details upon successful registration.\nUser Login (/login):\n\nDescription: Authenticates a user by validating their email and comparing the provided password with the hashed password in the database.\nInputs: email, password (both required).\nOutputs: Returns a success message and a JWT token upon successful login.\nForget Password (/forgetPassword):\n\nDescription: Sends a password reset email to the user with a link containing a token for resetting the password.\nInputs: email (required).\nOutputs: Sends an email with a password reset link to the provided email address.\nReset Password (/resetPassword/:id/:token):\n\nDescription: Verifies the reset token and allows the user to update their password.\nInputs: id, token (from URL parameters), and password (from request body).\nOutputs: Returns a success message upon successful password reset.\nTechnical Stack\nBackend: Node.js with Express framework.\nDatabase: MongoDB for user data storage.\nLibraries:\nbcryptjs for password hashing.\njsonwebtoken for token generation and verification.\nnodemailer for sending emails.\ndotenv for environment variable management.\nEnvironment Variables\nPASSMAIL: Email address used to send password reset emails.\nPASSKEY: Password for the email address used by nodemailer.\nJWT_SECRET_KEY: Secret key used for signing JWT tokens.\nMONGODB_URL: MongoDB connection string.\nError Handling\nUses a custom error handling utility (errorHandle) to manage and respond to various errors in the API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranava007%2Ffsd-auth-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranava007%2Ffsd-auth-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranava007%2Ffsd-auth-backend/lists"}