Skip to content

Commit

Permalink
Merge pull request #144 from serafuku/yunochi/develop
Browse files Browse the repository at this point in the history
Fix: 계정 삭제 이후 logout 호출 (토큰 삭제)
  • Loading branch information
yunochi authored Jan 13, 2025
2 parents 779817e + 0fbb4a8 commit 5f653be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/main/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export default function Settings() {
if (res.ok) {
localStorage.removeItem('user_handle');
localStorage.removeItem('last_token_refresh');
await fetch('/api/web/logout');
window.location.replace('/');
} else {
onApiError(res.status, res);
Expand Down

0 comments on commit 5f653be

Please sign in to comment.