Skip to content

Commit

Permalink
Refactor(mogua-station#123): 페이지 레벨 토큰 검증 로직 제거
Browse files Browse the repository at this point in the history
- 미들웨어에서 토큰 검증 처리 예정으로 중복 로직 제거
  • Loading branch information
Stilllee committed Feb 4, 2025
1 parent 8cadcc7 commit ffdbaaf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/app/user/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export default async function UserPage({ params }: { params: { id: string } }) {
const cookieStore = cookies();
const token = cookieStore.get("accessToken")?.value || "";

if (!token) {
throw new Error("인증이 필요한 페이지입니다.");
}

const userInfo = await getUserProfile(userId, token, {
cache: "no-store",
});
Expand Down

0 comments on commit ffdbaaf

Please sign in to comment.