code: function (result) {
          if (!result.authToken) {
              console.error("Login failed!".red);
              process.exit(1);
          }
  
          var token = JSON.stringify(result.body);
  
          if (token) {
              console.log("Login " + "Successfull.".green);
              //    console.log("OAuth token is: " + token.green);
  
              fs.writeFileSync('.token', token, 'utf8');
              console.log('Auth token saved!');
          }
      }
docs: success!