Skip to content

Commit

Permalink
Merge pull request #89 from innovationacademy-kr/develop
Browse files Browse the repository at this point in the history
[FE] BUG: 토큰 삭제 안되는 버그 #86
  • Loading branch information
42inshin authored Jan 8, 2024
2 parents 1ef723b + dd21e42 commit 264cf2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/cookie/cookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export const getCookie = () => {
};

export const removeCookie = (): void => {
document.cookie = `${tokenName}=; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
const domain = ".24hoursarenotenough.42seoul.kr";
document.cookie = `${tokenName}=; path=/; domain=${domain}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
};

0 comments on commit 264cf2e

Please sign in to comment.