Skip to content

Commit 39ed3fc

Browse files
committed
ts: lib/auth/github/index.js
1 parent 56766ad commit 39ed3fc

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

lib/auth/github/index.js renamed to lib/auth/github/index.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
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

1312
function githubUrl (path) {
1413
return config.github.enterpriseURL && new URL(path, config.github.enterpriseURL).toString()

0 commit comments

Comments
 (0)