Skip to content

Commit

Permalink
fix: delete invalid auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
olexh committed Jul 14, 2024
1 parent b03b906 commit 9a41652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/common/session-manager.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HydrationBoundary } from '@tanstack/react-query';
import { PropsWithChildren } from 'react';

import getLoggedUserInfo from '@/services/api/user/getLoggedUserInfo';
import { getCookie } from '@/utils/cookies';
import { deleteCookie, getCookie } from '@/utils/cookies';
import getQueryClient from '@/utils/get-query-client';

interface Props extends PropsWithChildren {}
Expand All @@ -20,7 +20,7 @@ const SessionManager = async ({ children }: Props) => {
}));
} catch (e) {
// console.log(e);
// await deleteCookie('auth');
await deleteCookie('auth');
}

const dehydratedState = dehydrate(queryClient);
Expand Down

0 comments on commit 9a41652

Please sign in to comment.