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

@@ -22,7 +22,7 @@ function DeleteAccountDialog(props) {
const handleConfirm = React.useCallback(async () => {
await deleteCurrentUser();
authentication.updateToken('');
authentication.removeToken();
await apolloClient.clearStore();
navigate(URLS.LOGIN);
}, [deleteCurrentUser, currentUser]);