I am trying to update my code for the Logout function (this another file)
authApi.logout = () => localStorage.setItem("state", "");