{"id":27648310,"url":"https://github.com/tintinweb/github-deviceauth","last_synced_at":"2025-10-05T19:06:02.083Z","repository":{"id":267305843,"uuid":"900834974","full_name":"tintinweb/github-deviceauth","owner":"tintinweb","description":"A minimalistic library to perform GitHub OAuth via the DeviceAuth Flow","archived":false,"fork":false,"pushed_at":"2024-12-09T15:08:28.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-09T16:25:40.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tintinweb.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}},"created_at":"2024-12-09T14:59:05.000Z","updated_at":"2024-12-09T15:09:18.000Z","dependencies_parsed_at":"2024-12-09T16:25:42.128Z","dependency_job_id":null,"html_url":"https://github.com/tintinweb/github-deviceauth","commit_stats":null,"previous_names":["tintinweb/github-deviceauth"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Fgithub-deviceauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Fgithub-deviceauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Fgithub-deviceauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tintinweb%2Fgithub-deviceauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tintinweb","download_url":"https://codeload.github.com/tintinweb/github-deviceauth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250549234,"owners_count":21448811,"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":[],"created_at":"2025-04-24T02:38:23.591Z","updated_at":"2025-10-05T19:06:01.985Z","avatar_url":"https://github.com/tintinweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-deviceauth\n\nA minimalistic library to perform GitHub OAuth via the DeviceAuth Flow\n\n## Example\n\n```javascript\n\nconst { GithubDeviceAuth } = require(\"../src/index\");\n\n(async () =\u003e {\n  const auth = new GithubDeviceAuth({ clientId: '...clientId....', scope: '' });\n\n  const result = await auth.authenticate({\n    statusCallback: async (data) =\u003e {\n      // all status updates\n      console.log(data);\n    },\n    deviceCodeCallback: async (deviceData) =\u003e {\n      // requestDeviceCode response\n      console.log('Visit the following URL in your browser and enter the user code:');\n      console.log(deviceData.verification_uri);\n      console.log('User Code: ' + deviceData.user_code);\n      console.log('Expires in: ' + deviceData.expires_in + ' seconds');\n    }\n  });\n  console.log(result); // success; users auth token\n})();\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftintinweb%2Fgithub-deviceauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftintinweb%2Fgithub-deviceauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftintinweb%2Fgithub-deviceauth/lists"}