Skip to content

Commit 94af365

Browse files
committed
ts: lib/auth/bitbucket/index.js
1 parent ef2945e commit 94af365

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
'use strict'
1+
import {Router} from "express";
2+
import * as passport from "passport";
3+
import {Strategy as BitbucketStrategy} from "passport-bitbucket-oauth2";
24

3-
const Router = require('express').Router
4-
const passport = require('passport')
5-
const BitbucketStrategy = require('passport-bitbucket-oauth2').Strategy
6-
const config = require('../../config')
7-
const { setReturnToFromReferer, passportGeneralCallback } = require('../utils')
5+
import * as config from "../../config";
6+
import {passportGeneralCallback, setReturnToFromReferer} from "../utils";
87

9-
const bitbucketAuth = module.exports = Router()
8+
const bitbucketAuth = Router()
9+
export = bitbucketAuth
1010

1111
passport.use(new BitbucketStrategy({
1212
clientID: config.bitbucket.clientID,

0 commit comments

Comments
 (0)