File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- 'use strict'
1+ import { Router } from "express" ;
2+ import * as passport from "passport" ;
3+ import { Strategy as GithubStrategy } from "passport-github" ;
4+ import * as config from "../../config" ;
5+ import * as response from "../../response" ;
6+ import { passportGeneralCallback , setReturnToFromReferer } from "../utils" ;
7+ import { URL } from "url" ;
28
3- const Router = require ( 'express' ) . Router
4- const passport = require ( 'passport' )
5- const GithubStrategy = require ( 'passport-github' ) . Strategy
6- const config = require ( '../../config' )
7- const response = require ( '../../response' )
8- const { setReturnToFromReferer, passportGeneralCallback } = require ( '../utils' )
9- const { URL } = require ( 'url' )
10-
11- const githubAuth = module . exports = Router ( )
9+ const githubAuth = Router ( )
10+ export = githubAuth
1211
1312function githubUrl ( path ) {
1413 return config . github . enterpriseURL && new URL ( path , config . github . enterpriseURL ) . toString ( )
You can’t perform that action at this time.
0 commit comments