# File lib/omniauth/strategies/windows_live/windowslivelogin.rb, line 781 def refreshConsentToken2(offers_string, refreshtoken, ru=nil) url = nil begin url = getRefreshConsentTokenUrl(offers_string, refreshtoken, ru) ret = fetch url ret.value # raises exception if fetch failed body = ret.body body.scan(/\{"ConsentToken":"(.*)"\}/){|match| return processConsentToken("#{match}") } debug("Error: refreshConsentToken2: Failed to extract token: #{body}") rescue Exception => e debug("Error: Failed to refresh consent token: #{e}") end return end