code: function parseOauthResultFromUrl(currentUrl) {
    var oauthUrl = url.parse(currentUrl);
    return oauthUrl.hash ? querystring.parse(oauthUrl.hash.substr(1)) : null;
  }
docs: Parses a URL and returns any Oauth result that may be encoded therein.
  @param currentUrl {String} Complete URL of a page.
  @returns {Object|null} Oauth fields found in the hash of the URL, or null
  if the URL does not contain a valid hash.