Skip to content

Commit

Permalink
redirect instead of render
Browse files Browse the repository at this point in the history
  • Loading branch information
nourkrimesh committed Aug 10, 2023
1 parent 564ae75 commit f50783f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/googleAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 18,7 @@ router.get("/google/callback", passport.authenticate("google", { failureRedirect
// email: req.user.email,
// token: generateToken(req.user._id),
// });
res.render('home');
res.redirect('/');
});


Expand Down

0 comments on commit f50783f

Please sign in to comment.