mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
Add linkedin /auth and /auth/callback routes
This commit is contained in:
parent
52ac42212d
commit
b09223a0cc
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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user