Skip to content

Commit 900141d

Browse files
committed
Remove unused passport authenticate callback function
1 parent d74d7bc commit 900141d

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

app.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ app.post("/temp", urlencodedParser, function (req, res) {
251251
//facebook auth
252252
if (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
266265
if (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
280278
if (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
296293
if (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
312308
if (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

Comments
 (0)