Skip to content

Commit

Permalink
Merge pull request #122 from AsliSema/google-redirect
Browse files Browse the repository at this point in the history
redirect instead of render
  • Loading branch information
nourkrimesh authored Aug 10, 2023
2 parents 564ae75 f50783f commit 4239787
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 4239787

Please sign in to comment.