added base path support for router, spelling fixes

This commit is contained in:
Wyatt Johnson
2017-08-15 14:19:58 -06:00
parent ca069317e9
commit e71eb28e42
15 changed files with 275 additions and 197 deletions
+3 -3
View File
@@ -220,7 +220,7 @@ when a valid token is provided but a user can't be found in the database that
matches the provided id.
The function is async, and should return the user object that was created in the
database, or null if the user wasn't found. The `jwt` paramenter of the object
database, or null if the user wasn't found. The `jwt` parameter of the object
is the unpacked token, while `token` is the original jwt token string.
### Routes
@@ -314,14 +314,14 @@ module.exports = {
const {passport} = require('services/passport');
/**
* Facebook auth endpoint, this will redirect the user immediatly to facebook
* Facebook auth endpoint, this will redirect the user immediately to facebook
* for authorization.
*/
router.get('/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.
* send back the user credentials upon successful login.
*/
router.get('/facebook/callback', (req, res, next) => {