From a0f2ba2d82f2259609c4559bb6a8431199e174cc Mon Sep 17 00:00:00 2001 From: 5nxtnxtnxt <5nxtnxtnxt@gmail.com> Date: Sun, 10 Dec 2023 17:32:33 +0900 Subject: [PATCH] etc: local test code remove --- front/src/pages/Main/Main.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/front/src/pages/Main/Main.tsx b/front/src/pages/Main/Main.tsx index e84aef5..876a5d6 100644 --- a/front/src/pages/Main/Main.tsx +++ b/front/src/pages/Main/Main.tsx @@ -93,19 +93,19 @@ const Main = () => { } }; - const saveCookie = () => { - const cookieToken = import.meta.env.VITE_APP_COOKIE_TOKEN; - const cookieName = 'access_token'; - const cookieValue = cookieToken; - const today = new Date(); - const expire = new Date(); - const secure = true; - expire.setDate(today.getDate() + 1); - document.cookie = `${cookieName}=${cookieValue}; expires=${expire.toUTCString()}; secure=${secure}; path=/`; - }; + // const saveCookie = () => { + // const cookieToken = import.meta.env.VITE_APP_COOKIE_TOKEN; + // const cookieName = 'access_token'; + // const cookieValue = cookieToken; + // const today = new Date(); + // const expire = new Date(); + // const secure = true; + // expire.setDate(today.getDate() + 1); + // document.cookie = `${cookieName}=${cookieValue}; expires=${expire.toUTCString()}; secure=${secure}; path=/`; + // }; useEffect(() => { - saveCookie(); + // saveCookie(); if (!cookie.loggedin) { navigate('/');