fix: introduce fix for token management

This commit is contained in:
kasia.oczkowska
2024-04-04 14:16:25 +01:00
parent 0930c9d8d6
commit 526e093689
6 changed files with 18 additions and 29 deletions

View File

@@ -15,7 +15,7 @@ function AccountDropdownMenu(props) {
const navigate = useNavigate();
const { open, onClose, anchorEl, id } = props;
const logout = async () => {
authentication.updateToken('');
authentication.removeToken();
await apolloClient.clearStore();
onClose();
navigate(URLS.LOGIN);