From 7a8b0c282653b4f8538b4ccc10ad123fbc703691 Mon Sep 17 00:00:00 2001 From: YOOJS1205 Date: Tue, 30 Jan 2024 21:05:35 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B2=AB=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20?= =?UTF-8?q?=EC=97=AC=EB=B6=80=20=EB=B6=84=EA=B8=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/middleware.ts b/src/middleware.ts index 6ed2b5ce..73dc6894 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -11,15 +11,15 @@ export function middleware(request: NextRequest) { // NOTE: splash 화면으로 넘어왔을 때 쿠키 내의 토큰 여부에 따른 리다이렉트 로직 if (isFromApp === 'true') { + console.log(accessToken, refreshToken); if (accessToken && refreshToken) { url.pathname = '/'; } else { url.pathname = '/login'; } } else { - console.log(isFirstLogin); // 웹 - if (isFirstLogin === 'true') { + if (isFirstLogin === 'True') { url.pathname = '/terms'; } else { url.pathname = '/';