{"id":13898120,"url":"https://github.com/gr2m/octokit-oauth-app-now-example","last_synced_at":"2025-06-10T12:07:19.060Z","repository":{"id":40716958,"uuid":"243174830","full_name":"gr2m/octokit-oauth-app-now-example","owner":"gr2m","description":"Serverless OAuth API using @octokit/oauth-app \u0026 now","archived":false,"fork":false,"pushed_at":"2023-07-12T04:32:19.000Z","size":43,"stargazers_count":10,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T07:04:37.065Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://octokit-oauth-app-now-example.now.sh","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gr2m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-02-26T05:16:14.000Z","updated_at":"2025-03-27T20:46:09.000Z","dependencies_parsed_at":"2022-07-29T05:18:14.793Z","dependency_job_id":null,"html_url":"https://github.com/gr2m/octokit-oauth-app-now-example","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"bfe9c89f1ede9f2e87e574f01eb179bb02c9973b"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Foctokit-oauth-app-now-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Foctokit-oauth-app-now-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Foctokit-oauth-app-now-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Foctokit-oauth-app-now-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gr2m","download_url":"https://codeload.github.com/gr2m/octokit-oauth-app-now-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Foctokit-oauth-app-now-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259072717,"owners_count":22801074,"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":"2024-08-06T18:04:05.674Z","updated_at":"2025-06-10T12:07:19.022Z","avatar_url":"https://github.com/gr2m.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# `@octokit/oauth-app` serverless example\n\nThis example showcases how to create an OAuth Client server for GitHub's (OAuth) Apps for a serverless environment using [now](https://zeit.co/home)\n\nAll the [default routes](https://github.com/octokit/oauth-app.js#middlewares) are implemented using separate files in the `/api` folder\n\nLearn more about [`@octokit/oauth-app`](https://github.com/octokit/oauth-app.js#readme).\n\n## Setup\n\nCreate two OAuth GitHub Apps, one for production and one for local development:\nhttps://github.com/settings/applications/new\n\nThe one for production needs to set `Authorization callback URL` to your apps URL: `https://\u003cyour app name\u003e.now.sh`. Then one for local development needs to set it to `http://localhost:3000`\n\nSet the `octokit-oauth-app-client-id` and `octokit-oauth-app-client-secret` secrets using the `now` CLI\n\n```sh\nnow secrets add octokit-oauth-app-client-id \u003cClient ID\u003e\nnow secrets add octokit-oauth-app-client-secret \u003cClient Secret\u003e\n```\n\nThen create an `.env` file and put in the Client ID \u0026 Secret for your\n\n## License\n\n[ISC](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Foctokit-oauth-app-now-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgr2m%2Foctokit-oauth-app-now-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Foctokit-oauth-app-now-example/lists"}