Skip to content

Commit 279293a

Browse files
committed
ts: lib/auth/dropbox/index.js
1 parent 94af365 commit 279293a

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 passport from "passport";
3+
import {Strategy as DropboxStrategy} from "passport-dropbox-oauth2";
24

3-
const Router = require('express').Router
4-
const passport = require('passport')
5-
const DropboxStrategy = require('passport-dropbox-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 dropboxAuth = module.exports = Router()
8+
const dropboxAuth = Router()
9+
export = dropboxAuth
1010

1111
passport.use(new DropboxStrategy({
1212
apiVersion: '2',

0 commit comments

Comments
 (0)