@@ -251,8 +251,7 @@ app.post("/temp", urlencodedParser, function (req, res) {
251251//facebook auth
252252if ( config . facebook ) {
253253 app . get ( '/auth/facebook' ,
254- passport . authenticate ( 'facebook' ) ,
255- function ( req , res ) { } ) ;
254+ passport . authenticate ( 'facebook' ) ) ;
256255 //facebook auth callback
257256 app . get ( '/auth/facebook/callback' ,
258257 passport . authenticate ( 'facebook' , {
@@ -265,8 +264,7 @@ if (config.facebook) {
265264//twitter auth
266265if ( config . twitter ) {
267266 app . get ( '/auth/twitter' ,
268- passport . authenticate ( 'twitter' ) ,
269- function ( req , res ) { } ) ;
267+ passport . authenticate ( 'twitter' ) ) ;
270268 //twitter auth callback
271269 app . get ( '/auth/twitter/callback' ,
272270 passport . authenticate ( 'twitter' , {
@@ -279,8 +277,7 @@ if (config.twitter) {
279277//github auth
280278if ( config . github ) {
281279 app . get ( '/auth/github' ,
282- passport . authenticate ( 'github' ) ,
283- function ( req , res ) { } ) ;
280+ passport . authenticate ( 'github' ) ) ;
284281 //github auth callback
285282 app . get ( '/auth/github/callback' ,
286283 passport . authenticate ( 'github' , {
@@ -295,8 +292,7 @@ if (config.github) {
295292//gitlab auth
296293if ( config . gitlab ) {
297294 app . get ( '/auth/gitlab' ,
298- passport . authenticate ( 'gitlab' ) ,
299- function ( req , res ) { } ) ;
295+ passport . authenticate ( 'gitlab' ) ) ;
300296 //gitlab auth callback
301297 app . get ( '/auth/gitlab/callback' ,
302298 passport . authenticate ( 'gitlab' , {
@@ -311,8 +307,7 @@ if (config.gitlab) {
311307//dropbox auth
312308if ( config . dropbox ) {
313309 app . get ( '/auth/dropbox' ,
314- passport . authenticate ( 'dropbox-oauth2' ) ,
315- function ( req , res ) { } ) ;
310+ passport . authenticate ( 'dropbox-oauth2' ) ) ;
316311 //dropbox auth callback
317312 app . get ( '/auth/dropbox/callback' ,
318313 passport . authenticate ( 'dropbox-oauth2' , {
0 commit comments