fix: remove redirect
This commit is contained in:
@@ -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' });
|
const jwtToken = jwt.sign({ userId: user.id }, process.env.JWT_SECRET as string, { expiresIn: '12h' });
|
||||||
res.cookie('token', jwtToken, { httpOnly: true });
|
res.cookie('token', jwtToken, { httpOnly: true });
|
||||||
|
|
||||||
res.redirect('http://localhost:3000');
|
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
message: 'Google authentication successful',
|
message: 'Google authentication successful',
|
||||||
google_sheet_email: robot.google_sheets_email,
|
google_sheet_email: robot.google_sheets_email,
|
||||||
|
|||||||
Reference in New Issue
Block a user