code: function createToken (client) {
    return ask([
      {"type": "input",     "message": "Username", "name": "user"},
      {"type": "password",  "message": "Password", "name": "password"}
    ]).then(function (answers) {
      return client.createToken(answers.username, answers.password)
        .then(saveToken)
        .then(function (token) {
          // Authorize client…
          client.setToken(token);
          // …and send it back to connect()
          return client;
        });
    });
  }
docs: Assuming client.createToken returns a promise of string