feat: login to google success

This commit is contained in:
Lin, Hung-Shin committed 2023-10-04 13:23:16 +08:00
1 parent 7fb0a22786
commit 44b3304046
8 files changed
+62 -5

No files matched your search

+10
View File
@@ -26,4 +26,14 @@ router.get('/check-username', checkUsername)
router.get('/check-session', checkSession)
router.get('/google', passport.authenticate('google'))
router.get(
'/google/callback',
passport.authenticate('google', {
successRedirect: '/',
failureRedirect: '/login',
})
)
export default router