From 35befca5585bc100daa78ac854f14401183cb413 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 16 Oct 2024 21:47:25 +0530 Subject: [PATCH] chore: lint --- server/src/routes/auth.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index 3a9ae351..95889ead 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -236,11 +236,11 @@ 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.json({ - message: 'Google authentication successful', - google_sheet_email: user.google_sheets_email, - jwtToken, - files + res.json({ + message: 'Google authentication successful', + google_sheet_email: user.google_sheets_email, + jwtToken, + files }); } catch (error: any) { res.status(500).json({ message: `Google OAuth error: ${error.message}` });