From 72bc46f78e0102161b3486bde753b12b70c4b9cb Mon Sep 17 00:00:00 2001 From: Abdullahi Ayobami Oladosu Date: Fri, 17 May 2019 12:25:41 +0100 Subject: [PATCH] Update auth.js --- routes/auth.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/routes/auth.js b/routes/auth.js index 3187b4f9..9578a9f9 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -14,12 +14,7 @@ router.get('/github', auth_controllers.authenticate); router.get('/github/callback', auth_controllers.callback); // route for facebook authentication and login -router.get( - "/facebook", - passport.authenticate("facebook", { - scope: ["public_profile", "email"] - }) -); +router.get("/facebook", passport.authenticate("facebook", {scope: ["public_profile", "email"]})); router.get("/facebook/callback", passport.authenticate("facebook", { failureRedirect: "/login" }), Jobs.setPreferences); @@ -30,4 +25,4 @@ router.get("/google", passport.authenticate("google", { scope: ["profile", "emai router.get("/google/callback", passport.authenticate("google", {successRedirect: "/job-preference",failureRedirect: "/login"})); -module.exports = router; \ No newline at end of file +module.exports = router;