docs: function authorizeApp(user, tokenName, scope) {
    return new Promise((resolve, reject) => {
      request.post('https://api.github.com/authorizations', {
        auth: {
          user: user.username,
          pass: user.password,
          sendImmediately: true
        },
        headers: {
          'content-type': 'application/x-www-form-urlencoded',
          'User-Agent': tokenName
        },
        body: JSON.stringify({
          scopes: scope,
          note: tokenName
        })
      }, (err, response, body) => {
        if (err) {
          reject(err);
        }
        const returnBody = JSON.parse(body);
        if (returnBody.token) {
          resolve(returnBody.token);
        }
        else if (returnBody.errors) {
          console.log(returnBody.errors);
          reject(returnBody.errors);
        }
      });
    });
  }