diff --git a/apps/wr/app/(with-layout)/jwttest/page.tsx b/apps/wr/app/(with-layout)/jwttest/page.tsx index 40baa2034..a0d9735a0 100644 --- a/apps/wr/app/(with-layout)/jwttest/page.tsx +++ b/apps/wr/app/(with-layout)/jwttest/page.tsx @@ -26,6 +26,14 @@ interface JwtState { error: string | null; // 쿠키 없음, 파싱 실패 등 오류 메시지 } +const initialJwtState: JwtState = { + token: "", + payload: null, + exp: null, + expDateLocal: null, + remainingMs: null, + error: null, +}; function parseJwt(token: string): JwtPayload { const parts = token.split("."); @@ -112,7 +120,7 @@ function readJwtState(): JwtState { } export default function Page() { - const [jwtState, setJwtState] = useState(() => readJwtState()); + const [jwtState, setJwtState] = useState(initialJwtState); const isRefreshingRef = useRef(false); const handleSilentRefresh = async () => { diff --git a/apps/wr/public/images/help.png b/apps/wr/public/images/help.png index e872802e4..977ef9d38 100644 Binary files a/apps/wr/public/images/help.png and b/apps/wr/public/images/help.png differ