We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef2945e commit 94af365Copy full SHA for 94af365
1 file changed
lib/auth/bitbucket/index.js lib/auth/bitbucket/index.tslib/auth/bitbucket/index.js renamed to lib/auth/bitbucket/index.ts
@@ -1,12 +1,12 @@
1
-'use strict'
+import {Router} from "express";
2
+import * as passport from "passport";
3
+import {Strategy as BitbucketStrategy} from "passport-bitbucket-oauth2";
4
-const Router = require('express').Router
-const passport = require('passport')
5
-const BitbucketStrategy = require('passport-bitbucket-oauth2').Strategy
6
-const config = require('../../config')
7
-const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
+import * as config from "../../config";
+import {passportGeneralCallback, setReturnToFromReferer} from "../utils";
8
9
-const bitbucketAuth = module.exports = Router()
+const bitbucketAuth = Router()
+export = bitbucketAuth
10
11
passport.use(new BitbucketStrategy({
12
clientID: config.bitbucket.clientID,
0 commit comments