From 2bbbf2bbf7df488854460f84806cb8b72fffbc68 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Wed, 5 Apr 2017 12:33:24 -0600 Subject: [PATCH] Fixed bug in plugin --- plugins/coral-plugin-facebook-auth/server/router.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/coral-plugin-facebook-auth/server/router.js b/plugins/coral-plugin-facebook-auth/server/router.js index 49d92449e..7ef7b0ed2 100644 --- a/plugins/coral-plugin-facebook-auth/server/router.js +++ b/plugins/coral-plugin-facebook-auth/server/router.js @@ -6,13 +6,13 @@ module.exports = (router) => { * Facebook auth endpoint, this will redirect the user immediatly to facebook * for authorization. */ - router.get('/facebook', passport.authenticate('facebook', {display: 'popup', authType: 'rerequest', scope: ['public_profile']})); + router.get('/api/v1/auth/facebook', passport.authenticate('facebook', {display: 'popup', authType: 'rerequest', scope: ['public_profile']})); /** * Facebook callback endpoint, this will send the user a html page designed to * send back the user credentials upon sucesfull login. */ - router.get('/facebook/callback', (req, res, next) => { + router.get('/api/v1/auth/facebook/callback', (req, res, next) => { // Perform the facebook login flow and pass the data back through the opener. passport.authenticate('facebook', HandleAuthPopupCallback(req, res, next))(req, res, next);