instance.get("token", { auth:{username:"peter93", password:"toto"}}).then(function(response) { console.log(response) });