instance.get("token", { withCredentials: true}) .then(function(response) { console.log(response) }) .catch(function(error){ });