code: function(data, configUpdater) {
          var updater = configUpdater || function(config) {return config;};
          $rootScope.$broadcast('event:auth-loginConfirmed', data);
          httpBuffer.retryAll(updater);
        }
docs: Call this function to indicate that authentication was successful and trigger a
  retry of all deferred requests.
  @param data an optional argument to pass on to $broadcast which may be useful for
  example if you need to pass through details of the user that was logged in
  @param configUpdater an optional transformation function that can modify the
  requests that are retried after having logged in.  This can be used for example
  to add an authentication token.  It must return the request.