From a29b019dd3199bc0e57af379f8b2a90ea3eedcc2 Mon Sep 17 00:00:00 2001 From: LimDong Date: Mon, 24 Jun 2024 16:14:40 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=B8=EB=93=A4=EC=9B=A8=EC=96=B4=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/family/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/family/index.tsx b/pages/family/index.tsx index 7cb8a46..cf7aca6 100644 --- a/pages/family/index.tsx +++ b/pages/family/index.tsx @@ -7,8 +7,11 @@ import { deleteCookie, getCookie } from 'cookies-next'; export default function Family() { console.log(getCookie('AccessToken')); + function deleteCookies(name: string) { + document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; + } const handleDelete = () => { - deleteCookie('AccessToken'); + deleteCookies('AccessToken'); console.log('a'); }; return (