From 12dd912df52601d90b1c12fd6ac8a6ff11249fd0 Mon Sep 17 00:00:00 2001 From: Choejeonghun Date: Tue, 5 Sep 2023 15:34:51 +0900 Subject: [PATCH] test --- front/src/components/frames/token/UserContext.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/front/src/components/frames/token/UserContext.tsx b/front/src/components/frames/token/UserContext.tsx index 82821d5..1993a7e 100644 --- a/front/src/components/frames/token/UserContext.tsx +++ b/front/src/components/frames/token/UserContext.tsx @@ -42,12 +42,15 @@ export const UserProvider: React.FC<{ children: React.ReactNode }> = ({ }; const token = fetchTokenFromCookie(); + console.log("Token: ", token); const storedNickname = localStorage.getItem("nickname"); + console.log("Stored Nickname: ", storedNickname); if (token) { if (storedNickname) { setUser({ token, nickname: storedNickname, isNewUser: false }); } else { + console.log("Redirecting to /ChangeNickname"); setUser({ token, nickname: "Guest", isNewUser: true }); navigate("/ChangeNickname"); }