Add linkedin /auth and /auth/callback routes
This commit is contained in:
2
app.js
2
app.js
@ -145,6 +145,8 @@ app.get('/auth/google', passport.authenticate('google', { scope: 'profile email'
|
||||
app.get('/auth/google/callback', passport.authenticate('google', { successRedirect: '/', failureRedirect: '/login' }));
|
||||
app.get('/auth/twitter', passport.authenticate('twitter'));
|
||||
app.get('/auth/twitter/callback', passport.authenticate('twitter', { successRedirect: '/', failureRedirect: '/login' }));
|
||||
app.get('/auth/linkedin', passport.authenticate('linkedin', { scope: ['r_basicprofile', 'r_emailaddress'] }));
|
||||
app.get('/auth/linkedin/callback', passport.authenticate('linkedin', { successRedirect: '/', failureRedirect: '/login' }));
|
||||
|
||||
/**
|
||||
* OAuth routes for API examples that require authorization.
|
||||
|
Reference in New Issue
Block a user