lib/iron_bank/authentications/cookie.rb in iron_bank-4.4.3 vs lib/iron_bank/authentications/cookie.rb in iron_bank-5.0.0

- old
+ new

@@ -41,18 +41,18 @@ @expires_at = Time.now + ONE_HOUR end alias refetch_cookie fetch_cookie def fetch_zsession - /ZSession=([^\;]+)/.match(cookie)[0] + /ZSession=([^;]+)/.match(cookie)[0] end def authenticate connection.post("v1/connections", {}) end def connection - @connection ||= Faraday.new(faraday_config) do |conn| + @connection ||= Faraday.new(**faraday_config) do |conn| IronBank.configuration.middlewares.each do |klass, options| conn.use klass, options end conn.request :url_encoded