{"id":14037299,"url":"https://github.com/probot/auth-routes","last_synced_at":"2025-10-19T15:32:37.683Z","repository":{"id":31505782,"uuid":"128104091","full_name":"probot/auth-routes","owner":"probot","description":"🔀🔒 Helpful authentication routes for Node.js GitHub integrations","archived":false,"fork":false,"pushed_at":"2025-01-22T07:49:21.000Z","size":130,"stargazers_count":14,"open_issues_count":9,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T19:46:48.769Z","etag":null,"topics":["github","github-integration","probot"],"latest_commit_sha":null,"homepage":"","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/probot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-04T18:29:24.000Z","updated_at":"2024-12-09T16:02:11.000Z","dependencies_parsed_at":"2023-12-22T06:32:43.647Z","dependency_job_id":"db00df1d-5c8b-4536-b0da-f713fbf1497f","html_url":"https://github.com/probot/auth-routes","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":0.4482758620689655,"last_synced_commit":"203a2f47da5fc7955dd3762306dc55b16f44c8c1"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fauth-routes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fauth-routes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fauth-routes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fauth-routes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probot","download_url":"https://codeload.github.com/probot/auth-routes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237163109,"owners_count":19265212,"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":["github","github-integration","probot"],"created_at":"2024-08-12T03:02:40.943Z","updated_at":"2025-10-19T15:32:37.337Z","avatar_url":"https://github.com/probot.png","language":"TypeScript","readme":"\u003ch3 align=\"center\"\u003eGitHub Auth Routes\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003eHelpful authentication routes for Node.js GitHub integrations\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://npmjs.com/package/auth-routes\"\u003e\u003cimg src=\"https://badgen.net/npm/v/auth-routes\" alt=\"NPM\"\u003e\u003c/a\u003e \u003ca href=\"https://travis-ci.com/probot/auth-routes\"\u003e\u003cimg src=\"https://badgen.now.sh/travis/probot/auth-routes\" alt=\"Build Status\"\u003e\u003c/a\u003e \u003ca href=\"https://codecov.io/gh/probot/auth-routes/\"\u003e\u003cimg src=\"https://badgen.now.sh/codecov/c/github/probot/auth-routes\" alt=\"Codecov\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## Install\n\n```bash\n$ npm install auth-routes\n```\n\n## Usage\n\n```js\nconst { registerAuthRoutes } = require(\"auth-routes\");\n\nconst app = express();\nregisterAuthRoutes(app, {\n  client_id: process.env.GITHUB_CLIENT_ID,\n  client_secret: process.env.GITHUB_CLIENT_SECRET,\n});\n\n// Or pass some options:\nregisterAuthRoutes(app, {\n  loginURL: \"/log-me-in\",\n  callbackURL: \"/call-me-back\",\n  client_id: process.env.GITHUB_CLIENT_ID,\n  client_secret: process.env.GITHUB_CLIENT_SECRET,\n});\n```\n\n### Use with Probot\n\n```js\nmodule.exports = (app) =\u003e {\n  // Access the Express server that Probot uses\n  const expressApp = app.route();\n\n  // Register the routes as normal\n  registerAuthRoutes(expressApp, {\n    client_id: process.env.GITHUB_CLIENT_ID,\n    client_secret: process.env.GITHUB_CLIENT_SECRET,\n  });\n};\n```\n\n## Options\n\n| Name            | Description                                           | Required | Default       |\n| --------------- | ----------------------------------------------------- | -------- | ------------- |\n| `client_id`     | GitHub App's Client ID                                | ✓        | -             |\n| `client_secret` | GitHub App's Client Secret                            | ✓        | -             |\n| `loginURL`      | Login path                                            |          | `'/login'`    |\n| `callbackURL`   | Authorization callback URL, for your GitHub App       |          | `'/login/cb'` |\n| `afterLogin`    | Where users are redirected to after they've logged in |          | `'/'`         |\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobot%2Fauth-routes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobot%2Fauth-routes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobot%2Fauth-routes/lists"}