From 6c7bf385d0a1fbcde0c2eb25fc9191381eddbb2e Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 17 Oct 2024 13:28:30 +0530 Subject: [PATCH] fix: remove redirect --- server/src/routes/auth.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index 406448fe..ec62404f 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -252,8 +252,6 @@ router.get('/google/callback', requireSignIn, async (req, res) => { const jwtToken = jwt.sign({ userId: user.id }, process.env.JWT_SECRET as string, { expiresIn: '12h' }); res.cookie('token', jwtToken, { httpOnly: true }); - res.redirect('http://localhost:3000'); - res.json({ message: 'Google authentication successful', google_sheet_email: robot.google_sheets_email,