File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -209,5 +209,6 @@ const githubAuthCallback = (app) => {
209209module . exports = {
210210 githubAuth,
211211 githubAuthCallback,
212+ handleOAuthCallback,
212213 githubApp,
213214} ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments