mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: OAuth flow by setting scope and cookie to 'lax'
This commit is contained in:
1 parent
df140c64f8
commit
455fde41ab
5 files changed
+12
-5
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user