lib/neulion.js
function go() {
    return new Promise(handler)
      // Check for invalid `authCode`, this seems to happen at random intervals
      // within the neulion API, so we will only know when a request fails
      .catch(Errors.AuthenticationError, function(err) {

        // Authenticate and then try one more time
        return self
          .auth()
          .then(function() {
            return new Promise(handler)
          })
      })
  }
function go() {
    return new Promise(handler)
      // Check for invalid `authCode`, this seems to happen at random intervals
      // within the neulion API, so we will only know when a request fails
      .catch(Errors.AuthenticationError, function(err) {

        // Authenticate and then try one more time
        return self
          .auth()
          .then(function() {
            return new Promise(handler)
          })
      })
  }
function go ( ) { return new Promise ( handler ) // Check for invalid `authCode`, this seems to happen at random intervals // within the neulion API, so we will only know when a request fails . catch ( Errors . AuthenticationError , function ( err ) { // Authenticate and then try one more time return self . auth ( ) . then ( function ( ) { return new Promise ( handler ) } ) } ) }
Primary method runner
Primary method runner