{"id":15288618,"url":"https://github.com/xjh22222228/github-oauth2","last_synced_at":"2025-06-18T19:41:13.632Z","repository":{"id":64307268,"uuid":"351619116","full_name":"xjh22222228/github-oauth2","owner":"xjh22222228","description":"Github OAuth2 for Go","archived":false,"fork":false,"pushed_at":"2024-06-05T03:38:17.000Z","size":29,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T17:58:07.621Z","etag":null,"topics":["oauth2","serverless","vercel"],"latest_commit_sha":null,"homepage":"https://github-oauth2-indol.vercel.app","language":"Go","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/xjh22222228.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":"2021-03-26T00:53:59.000Z","updated_at":"2025-01-25T03:24:09.000Z","dependencies_parsed_at":"2024-06-20T17:29:01.704Z","dependency_job_id":null,"html_url":"https://github.com/xjh22222228/github-oauth2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xjh22222228%2Fgithub-oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xjh22222228%2Fgithub-oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xjh22222228%2Fgithub-oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xjh22222228%2Fgithub-oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xjh22222228","download_url":"https://codeload.github.com/xjh22222228/github-oauth2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252804806,"owners_count":21806879,"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":["oauth2","serverless","vercel"],"created_at":"2024-09-30T15:51:22.006Z","updated_at":"2025-05-07T03:23:04.292Z","avatar_url":"https://github.com/xjh22222228.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cb\u003eGithub OAuth2\u003c/b\u003e\n  \u003c/p\u003e\n  \u003cp align=\"center\"\u003eServerless For Vercel\u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"README_zh-CN.md\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/lang-%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87-red.svg?longCache=true\u0026style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/github/go-mod/go-version/xjh22222228/github-oauth2\" /\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/xjh22222228/github-oauth2\" /\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/xjh22222228/github-oauth2\" /\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n## Demo\n\n- [https://github-oauth-opal.vercel.app](https://github-oauth-opal.vercel.app)\n- [https://github-oauth-opal.vercel.app/api/oauth](https://github-oauth-opal.vercel.app/api/oauth)\n- [https://github-oauth-opal.vercel.app/api/user](https://github-oauth-opal.vercel.app/api/user)\n\n## Environment variable\n\n```json\n{\n  \"client_id\": \"xxx\",\n  \"client_secret\": \"xxx\"\n}\n```\n\n## Usage\n\n- Fork\n- Make sure to make the warehouse private\n- https://github.com/apps/vercel\n- ...\n\n## Example For JS\n\n```js\nfetch(\"/api/oauth?code=xxx\", {\n  method: \"GET\",\n}).then((res) =\u003e {\n  console.log(res);\n  // ...\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxjh22222228%2Fgithub-oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxjh22222228%2Fgithub-oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxjh22222228%2Fgithub-oauth2/lists"}