Skip to content

Commit

Permalink
미들웨어 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
DHyeon98 committed Jun 24, 2024
1 parent 9a7665f commit a29b019
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/family/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ import { deleteCookie, getCookie } from 'cookies-next';

export default function Family() {
console.log(getCookie('AccessToken'));
function deleteCookies(name: string) {
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
}
const handleDelete = () => {
deleteCookie('AccessToken');
deleteCookies('AccessToken');
console.log('a');
};
return (
Expand Down

0 comments on commit a29b019

Please sign in to comment.