fix(AccountDropdownMenu): await token revocation request
This commit is contained in:
@@ -20,7 +20,7 @@ function AccountDropdownMenu(props) {
|
|||||||
const { open, onClose, anchorEl, id } = props;
|
const { open, onClose, anchorEl, id } = props;
|
||||||
|
|
||||||
const logout = async () => {
|
const logout = async () => {
|
||||||
revokeAccessTokenMutation.mutate();
|
await revokeAccessTokenMutation.mutateAsync();
|
||||||
|
|
||||||
authentication.removeToken();
|
authentication.removeToken();
|
||||||
await apolloClient.clearStore();
|
await apolloClient.clearStore();
|
||||||
|
Reference in New Issue
Block a user