checkToken(); signOut(); var id = getParam("id"); instance.get("users/"+id, {withCredentials: true}) .then(function(response){ }) .catch(function(error){ });