Skip to content

Commit

Permalink
Removed the domain field to check the cookie error
Browse files Browse the repository at this point in the history
  • Loading branch information
Puneet-NJ committed Jan 5, 2025
1 parent 18569f3 commit ef0f354
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions backend/src/v1/routes/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ adminRouter.post("/signup", async (req, res) => {
httpOnly: true,
sameSite: "none",
secure: process.env.NODE_ENV === "production",
domain: "course-app.puneetnj.fun",
});

res.json({ msg: "Sign up successful" });
Expand Down Expand Up @@ -93,7 +92,6 @@ adminRouter.post("/signin", async (req, res) => {
httpOnly: true,
sameSite: "none",
secure: process.env.NODE_ENV === "production",
domain: "course-app.puneetnj.fun",
});

res.json({ msg: "Sign in successful" });
Expand Down
2 changes: 0 additions & 2 deletions backend/src/v1/routes/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ userRouter.post("/signup", async (req, res) => {
httpOnly: true,
sameSite: "none",
secure: process.env.NODE_ENV === "production",
domain: "course-app.puneetnj.fun",
});

res.json({ msg: "Sign up successful" });
Expand Down Expand Up @@ -93,7 +92,6 @@ userRouter.post("/signin", async (req, res) => {
httpOnly: true,
sameSite: "none",
secure: process.env.NODE_ENV === "production",
domain: "course-app.puneetnj.fun",
});

res.json({ msg: "Sign in successful" });
Expand Down

0 comments on commit ef0f354

Please sign in to comment.