Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 657ef98

Browse files
auth handle
1 parent 1078ea1 commit 657ef98

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎routes/auth.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@ const passport = require('passport');
77
router.get('/google', passport.authenticate('google',
88
{scope: ['profile', 'email']}));
99

10+
router.get('/google/callback',
11+
passport.authenticate('google', { failureRedirect: '/' }),(req, res) => {
12+
// Successful authentication, redirect home.
13+
res.redirect('/dashboard');
14+
});
15+
16+
1017
module.exports = router;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /