{"id":23229000,"url":"https://github.com/barcodehub/email-auth-node","last_synced_at":"2025-04-05T18:29:43.938Z","repository":{"id":250742449,"uuid":"835344360","full_name":"Barcodehub/email-auth-node","owner":"Barcodehub","description":"Password recovery, and password reset with email confirmation. Nodejs and MongoDB","archived":false,"fork":false,"pushed_at":"2024-07-29T19:07:49.000Z","size":3815,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T15:53:31.560Z","etag":null,"topics":["email-sender","jwt","password-recovery","reset-password"],"latest_commit_sha":null,"homepage":"","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/Barcodehub.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-07-29T16:34:13.000Z","updated_at":"2024-08-20T01:11:32.000Z","dependencies_parsed_at":"2024-07-29T22:19:08.494Z","dependency_job_id":"09d2fcbe-7d50-4ea3-911e-1b3cc4df5da6","html_url":"https://github.com/Barcodehub/email-auth-node","commit_stats":null,"previous_names":["barcodehub/email-auth-node"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barcodehub%2Femail-auth-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barcodehub%2Femail-auth-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barcodehub%2Femail-auth-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Barcodehub%2Femail-auth-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Barcodehub","download_url":"https://codeload.github.com/Barcodehub/email-auth-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247382979,"owners_count":20930191,"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":["email-sender","jwt","password-recovery","reset-password"],"created_at":"2024-12-19T01:15:50.885Z","updated_at":"2025-04-05T18:29:43.921Z","avatar_url":"https://github.com/Barcodehub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication System and Password Reset via Email\n\n## Description\n\nThis project is a robust backend application developed with Node.js and Express, implementing JWT (JSON Web Token) authentication and user management. It uses MongoDB as a database and offers features such as user registration, login, password recovery, and password reset with email confirmation.\n\n## Configuration\n\nCreate a `.env` file in the project root and configure the environment variables (see Configuration section).\n  ```\nPORT=3000\nMONGO_URI=your_mongodb_uri\nJWT_SECRET=your_jwt_secret\nJWT_EXPIRE=30d\nSMTP_HOST=your_smtp_host\nSMTP_PORT=your_smtp_port\nSMTP_EMAIL=your_email\nSMTP_PASSWORD=your_password\nFROM_EMAIL=sender_email\nFROM_NAME=Your_app_name\n  ```\nMake sure to replace the values with your specific configuration.\n\n## Usage\n\nThe API provides the following endpoints:\n\n- `POST /api/auth/register`: Registers a new user\n- `POST /api/auth/login`: Logs in and returns a JWT token\n- `POST /api/auth/forgotpassword`: Requests a password reset\n- `PUT /api/auth/resetpassword/:resettoken`: Resets the password with a valid token\n\n\n## Security\n\n- Passwords are hashed before being stored in the database.\n- JWT is used for user authentication.\n- Password reset tokens have a short expiration for security.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarcodehub%2Femail-auth-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarcodehub%2Femail-auth-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarcodehub%2Femail-auth-node/lists"}