fix: introduce fix for token management
This commit is contained in:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user