Skip to content

Commit

Permalink
google login small change
Browse files Browse the repository at this point in the history
  • Loading branch information
kamadi2000 committed Nov 1, 2023
1 parent 5a99571 commit caacd30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/controllers/authController.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ const googleLoginBase = async (req, res, isWeb) => {
{ expiresIn: "5hour" }
);
if (isWeb) {
res.cookie("token", newToken);
res.json({ message: "Login successful" });
// res.cookie("token", newToken);
// res.json({ message: "Login successful" });
res.json({ message: "Login Successful", newToken });
return;
} else {
res.json({ message: "Login Successful", token });
Expand Down

0 comments on commit caacd30

Please sign in to comment.