I am trying to protect my routes with reactjs and hooks. However there is an issue. The user and the token don\'t update even if make setUser() and setToken() with new values in