{"id":20807081,"url":"https://github.com/pycreater/auth","last_synced_at":"2026-04-14T03:32:33.978Z","repository":{"id":249059179,"uuid":"830376292","full_name":"Pycreater/Auth","owner":"Pycreater","description":"JWT authentication using NestJS with mongoDB","archived":false,"fork":false,"pushed_at":"2024-07-21T13:54:41.000Z","size":316,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-31T09:35:39.145Z","etag":null,"topics":["javascript","jwt-authentication","mongodb","nestjs","typescript"],"latest_commit_sha":null,"homepage":"https://auth-frontend-topaz.vercel.app/","language":"TypeScript","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/Pycreater.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-18T06:46:16.000Z","updated_at":"2024-07-22T12:59:53.000Z","dependencies_parsed_at":"2024-07-21T14:40:18.928Z","dependency_job_id":null,"html_url":"https://github.com/Pycreater/Auth","commit_stats":null,"previous_names":["pycreater/auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pycreater/Auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycreater%2FAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycreater%2FAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycreater%2FAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycreater%2FAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pycreater","download_url":"https://codeload.github.com/Pycreater/Auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pycreater%2FAuth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31781292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["javascript","jwt-authentication","mongodb","nestjs","typescript"],"created_at":"2024-11-17T19:30:46.999Z","updated_at":"2026-04-14T03:32:33.959Z","avatar_url":"https://github.com/Pycreater.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth\n\nThis repository contains an authentication system built using NestJS. It supports user registration, login, and token-based authentication with JWT.\n\n## Features\n\n- User Registration\n- User Login\n- JWT Authentication\n\n## Technologies Used\n\n- TypeScript\n- NestJS\n- JWT\n- MongoDB\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js\n- npm\n- MongoDB\n\n### Installation\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/Pycreater/Auth.git\n    ```\n2. Navigate to the project directory:\n    ```sh\n    cd Auth\n    ```\n3. Install the dependencies:\n    ```sh\n    npm install\n    ```\n4. Create a `.env` file in the root directory and add your MongoDB and JWT configurations:\n    ```env\n    PORT=8000\n    MONGODB_URI=\n    CORS_ORIGIN=\n    ACCESS_TOKEN_SECRET=\n    ACCESS_TOKEN_EXPIRY=\n    REFRESH_TOKEN_SECRET=\n    REFRESH_TOKEN_EXPIRY=\n    ```\n\n### Running the Application\n\nRun the following command to start the application:\n```sh\nnpm run start\n```\n\nThe application will be accessible at `http://localhost:8000`.\n\n## API Endpoints\n\n### Authentication\n\n- **Register**: `POST /api/v1/user/register`\n    ```json\n    {\n        \"username\": \"your_username\",\n        \"password\": \"your_password\",\n        \"email\": \"your_email\"\n    }\n    ```\n\n- **Login**: `POST /api/v1/user/login`\n    ```json\n    {\n        \"email\": \"your_email\",\n        \"password\": \"your_password\"\n    }\n    ```\n\n### Secured Endpoints\n\nThese endpoints require a valid JWT token to access.\n\n- **User Logout**: `POST /api/v1/user/logout`\n    - Headers: `Authorization: Bearer \u003cyour_jwt_token\u003e`\n\n- **Change-password**: `POST /api/v1/user/forgot-password`\n    - Headers: `Authorization: Bearer \u003cyour_jwt_token\u003e`\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any changes.\n\n## License\n\nThis project is licensed under the MIT License. See the [MIT](MIT) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycreater%2Fauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpycreater%2Fauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycreater%2Fauth/lists"}