Skip to content

Commit 2a1424a

Browse files
chore: setup staging 2
1 parent 2135c25 commit 2a1424a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

providers/github/auth.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,5 +209,6 @@ const githubAuthCallback = (app) => {
209209
module.exports = {
210210
githubAuth,
211211
githubAuthCallback,
212+
handleOAuthCallback,
212213
githubApp,
213214
};

routes/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const {
1111
gitlabAuth,
1212
gitlabAuthCallback,
1313
} = require("../providers/index.js");
14+
const { handleOAuthCallback } = require("../providers/github/auth.js");
1415

1516
/**
1617
* Redirects the user to the GitHub OAuth login page for authentication.
@@ -160,6 +161,7 @@ const setupRoutes = (app) => {
160161
app.get("/api/login", login);
161162

162163
//callbacks
164+
app.post("/api/callback/github", handleOAuthCallback);
163165
githubAuthCallback(app);
164166
gitlabAuthCallback(app);
165167
app.get("/api/badgedRepos", badgedRepos);

0 commit comments

Comments
 (0)