From b5bd75ab80de721faa0a76859074ac7ea8356fee Mon Sep 17 00:00:00 2001 From: abcxj123 Date: Tue, 9 Jul 2024 10:31:07 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20FcmToken=20=EC=9E=90=EB=8F=99=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Landing.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/Landing.tsx b/src/pages/Landing.tsx index 933ac09..660d500 100644 --- a/src/pages/Landing.tsx +++ b/src/pages/Landing.tsx @@ -1,11 +1,13 @@ import { useNavigate } from "react-router-dom"; import { useEffect } from "react"; -import { getCookie } from "../utils/cookie"; +import { getCookie, setCookie } from "../utils/cookie"; const Landing = () => { const navigate = useNavigate(); useEffect(() => { + setCookie("fcmToken", ""); + const timeout = setTimeout(() => { if (getCookie("phone")) { navigate("/login");