Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.get(
- '/auth/github',
- passport.authenticate('github'),
- (req, res) => {
- console.log('auth github cb');
- },
- );
- app.get(
- '/auth/github/callback',
- passport.authenticate('github', { failureRedirect: '/login' }),
- (req, res) => {
- console.log('auth/github/callback /')
- res.redirect('/');
- },
- );
- app.get('/logout', (req, res) => {
- req.logout();
- res.redirect('/');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement