lib/auth/oauth_util.js
function parseOauthResultFromUrl(currentUrl) {
  var oauthUrl = url.parse(currentUrl);
  return oauthUrl.hash ? querystring.parse(oauthUrl.hash.substr(1)) : null;
}
function parseOauthResultFromUrl(currentUrl) {
  var oauthUrl = url.parse(currentUrl);
  return oauthUrl.hash ? querystring.parse(oauthUrl.hash.substr(1)) : null;
}
function parseOauthResultFromUrl ( currentUrl ) { var oauthUrl = url . parse ( currentUrl ) ; return oauthUrl . hash ? querystring . parse ( oauthUrl . hash . substr ( 1 ) ) : null ; }
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.
Parses a URL and returns any Oauth result that may be encoded therein .