fix: OAuth flow by setting scope and cookie to 'lax'

This commit is contained in:
wancat committed 2024-04-05 17:56:09 +08:00
1 parent df140c64f8
commit 455fde41ab
5 files changed
+12 -5

No files matched your search

+4 -1
View File
@@ -46,7 +46,10 @@ router.get('/available-methods', (req, res) => {
})
if (enabledMethods.google) {
router.get('/google', passport.authenticate('google'))
router.get(
'/google',
passport.authenticate('google', { scope: ['email', 'profile'] })
)
router.get(
'/google/callback',
authenticateRateLimit,