Skip to content

Commit

Permalink
hotfix: 로그아웃 요청이 제대로 전달 안돼도 일단 로그아웃되도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
oooppq committed Dec 24, 2023
1 parent 9f53be2 commit 937f1c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/api/logout/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ export async function POST(request: Request) {
cache: 'no-cache',
}
);

cookies().delete('user_info');
if (res.ok) {
cookies().delete('user_info');
return new Response('Logout Success', {
status: 200,
});
Expand Down

0 comments on commit 937f1c3

Please sign in to comment.