{"id":25510423,"url":"https://github.com/art2url/solve-sync-oauth-server","last_synced_at":"2026-04-02T03:09:16.525Z","repository":{"id":275017851,"uuid":"924806277","full_name":"art2url/solve-sync-oauth-server","owner":"art2url","description":"🗄️ SolveSync OAuth Server – lightweight Express server that handles GitHub OAuth authentication for the SolveSync Chrome extension, enabling secure and seamless uploads of LeetCode solutions to GitHub repositories.","archived":false,"fork":false,"pushed_at":"2025-02-10T10:23:40.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-01-03T16:19:25.013Z","etag":null,"topics":["api","authentication","chrome-extension","express-js","expressjs","github","github-api","github-oauth","leetcode","node","node-js","nodejs","oauth","oauth-server","secure-authentication"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/art2url.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-01-30T17:25:36.000Z","updated_at":"2025-02-10T10:29:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ec56818-5ca8-438b-b14e-d826b49176fb","html_url":"https://github.com/art2url/solve-sync-oauth-server","commit_stats":null,"previous_names":["art2url/solvesync-backend","art2url/solve-sync-oauth-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/art2url/solve-sync-oauth-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art2url%2Fsolve-sync-oauth-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art2url%2Fsolve-sync-oauth-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art2url%2Fsolve-sync-oauth-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art2url%2Fsolve-sync-oauth-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/art2url","download_url":"https://codeload.github.com/art2url/solve-sync-oauth-server/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/art2url%2Fsolve-sync-oauth-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"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":["api","authentication","chrome-extension","express-js","expressjs","github","github-api","github-oauth","leetcode","node","node-js","nodejs","oauth","oauth-server","secure-authentication"],"created_at":"2025-02-19T09:39:57.429Z","updated_at":"2026-04-02T03:09:16.501Z","avatar_url":"https://github.com/art2url.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SolveSync OAuth Server\n\nThis server handles the OAuth authentication flow for the **SolveSync** Chrome extension, enabling secure GitHub authorization and token management.\n\n## Features\n- Secure OAuth authentication with GitHub.\n- Exchanges authorization codes for access tokens.\n- Retrieves GitHub user information using access tokens.\n- Cross-Origin Resource Sharing (CORS) enabled for broad compatibility.\n\n## Prerequisites\n- **Node.js** (v12 or higher)\n- **npm** or **yarn**\n- A **GitHub OAuth App** with the following details:\n  - **Client ID** and **Client Secret**\n\n## Setup\n\n1. **Clone the Repository:**\n   ```bash\n   git clone https://github.com/art2url/solve-sync-oauth-server.git\n   cd solve-sync-oauth-server\n   ```\n\n2. **Install Dependencies:**\n   ```bash\n   npm install\n   ```\n\n3. **Configure Environment Variables:**\n   Create a `.env` file in the root directory:\n   ```env\n   GITHUB_CLIENT_ID=your_github_client_id\n   GITHUB_CLIENT_SECRET=your_github_client_secret\n   PORT=3000  # Optional: Defaults to 3000 if not set\n   ```\n\n4. **Run the Server:**\n   ```bash\n   npm start\n   ```\n   The server will run at `http://localhost:3000`.\n\n## API Endpoints\n\n### POST `/auth/github`\nExchanges the GitHub OAuth code for an access token and retrieves the GitHub username.\n\n**Request:**\n```json\n{\n  \"code\": \"authorization_code_from_github\"\n}\n```\n\n**Response:**\n```json\n{\n  \"access_token\": \"github_access_token\",\n  \"github_username\": \"your_github_username\"\n}\n```\n\n## License\nThis project is licensed under the **MIT License**.\n\n## Contributing\nContributions are welcome! Feel free to open an issue or submit a pull request.\n\n---\n\n**SolveSync** — Automate your coding workflow with secure GitHub integration! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fart2url%2Fsolve-sync-oauth-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fart2url%2Fsolve-sync-oauth-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fart2url%2Fsolve-sync-oauth-server/lists"}