Skip to content

Commit

Permalink
Update auth.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Shock451 committed May 17, 2019
1 parent f465f6c commit 72bc46f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions routes/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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;
module.exports = router;

0 comments on commit 72bc46f

Please sign in to comment.