Skip to content

Commit

Permalink
cookies error test1
Browse files Browse the repository at this point in the history
  • Loading branch information
Puneet-NJ committed Jan 5, 2025
1 parent b796317 commit 18569f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions backend/src/v1/routes/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ adminRouter.post("/signup", async (req, res) => {

res.cookie("auth", token, {
httpOnly: true,
sameSite: "lax",
sameSite: "none",
secure: process.env.NODE_ENV === "production",
domain: "localhost",
domain: "course-app.puneetnj.fun",
});

res.json({ msg: "Sign up successful" });
Expand Down Expand Up @@ -91,9 +91,9 @@ adminRouter.post("/signin", async (req, res) => {

res.cookie("auth", token, {
httpOnly: true,
sameSite: "lax",
sameSite: "none",
secure: process.env.NODE_ENV === "production",
domain: "localhost",
domain: "course-app.puneetnj.fun",
});

res.json({ msg: "Sign in successful" });
Expand Down
8 changes: 4 additions & 4 deletions backend/src/v1/routes/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ userRouter.post("/signup", async (req, res) => {

res.cookie("auth", token, {
httpOnly: true,
sameSite: "lax",
sameSite: "none",
secure: process.env.NODE_ENV === "production",
domain: "localhost",
domain: "course-app.puneetnj.fun",
});

res.json({ msg: "Sign up successful" });
Expand Down Expand Up @@ -91,9 +91,9 @@ userRouter.post("/signin", async (req, res) => {

res.cookie("auth", token, {
httpOnly: true,
sameSite: "lax",
sameSite: "none",
secure: process.env.NODE_ENV === "production",
domain: "localhost",
domain: "course-app.puneetnj.fun",
});

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

0 comments on commit 18569f3

Please sign in to comment.