Skip to content

Commit b2afa16

Browse files
committed
fix: 미들웨어 오류 수정
1 parent 6d22f1d commit b2afa16

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/middleware.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ export async function middleware(request: NextRequest) {
2424
}
2525
return response;
2626
} else {
27-
return NextResponse.redirect(new URL("/auth/signin", request.url));
27+
const response = NextResponse.redirect(
28+
new URL("/auth/signin", request.url),
29+
);
30+
response.cookies.delete("refresh_token");
31+
return response;
2832
}
2933
}
3034

0 commit comments

Comments
 (0)