From 9ced064fa5669a461ef95c5a392f60f8000ece94 Mon Sep 17 00:00:00 2001 From: CS50X-RGB Date: Thu, 29 Feb 2024 22:39:49 +0530 Subject: [PATCH] Secret added --- src/features/cart/authSlice.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/cart/authSlice.js b/src/features/cart/authSlice.js index 2be35d3..fb1290b 100644 --- a/src/features/cart/authSlice.js +++ b/src/features/cart/authSlice.js @@ -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."); }