GitHub Auth Routes
Helpful authentication routes for Node.js GitHub integrations
Usage
const registerAuthRoutes = const app = // Or pass some options:
Use with Probot
module { // Access the Express server that Probot uses const expressApp = app // Register the routes as normal }
Options
Name | Description | Required | Default |
---|---|---|---|
client_id |
GitHub App's Client ID | ✓ | - |
client_secret |
GitHub App's Client Secret | ✓ | - |
loginURL |
Login path | '/login' |
|
callbackURL |
Authorization callback URL, for your GitHub App | '/login/cb' |
|
afterLogin |
Where users are redirected to after they've logged in | '/' |