File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
- 'use strict'
1
+ import { Router } from "express" ;
2
+ import passport from "passport" ;
3
+ import { Strategy as TwitterStrategy } from "passport-twitter" ;
2
4
3
- const Router = require ( 'express' ) . Router
4
- const passport = require ( 'passport' )
5
- const TwitterStrategy = require ( 'passport-twitter' ) . Strategy
5
+ import * as config from "../../config" ;
6
+ import { passportGeneralCallback , setReturnToFromReferer } from "../utils" ;
6
7
7
- const config = require ( '../../config' )
8
- const { setReturnToFromReferer, passportGeneralCallback } = require ( '../utils' )
9
-
10
- const twitterAuth = module . exports = Router ( )
8
+ const twitterAuth = Router ( )
9
+ export = module . exports
11
10
12
11
passport . use ( new TwitterStrategy ( {
13
12
consumerKey : config . twitter . consumerKey ,
You can’t perform that action at this time.
0 commit comments