Skip to content

Commit

Permalink
Secret added
Browse files Browse the repository at this point in the history
  • Loading branch information
CS50X-RGB committed Feb 29, 2024
1 parent d1feca2 commit 9ced064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/cart/authSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const authSlice = createSlice({
state.token = token;
state.isAuth = true;

Cookies.set("token", token,{secure: true ,sameSite : 'strict',httpOnly : true});
Cookies.set("isAuth", true ,{secure: true ,sameSite : 'strict',httpOnly : true});
Cookies.set("token", token,{secure: true ,sameSite : 'strict'});
Cookies.set("isAuth", true ,{secure: true ,sameSite : 'strict'});
} else {
console.error("Token not provided in login action payload.");
}
Expand Down

0 comments on commit 9ced064

Please sign in to comment.