Skip to content

Commit

Permalink
첫 로그인 여부 분기 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
YOOJS1205 committed Jan 30, 2024
1 parent 49c4652 commit 7a8b0c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '/';
Expand Down

0 comments on commit 7a8b0c2

Please sign in to comment.