lib/hello_sign/client.rb in hellosign-api-1.0.4 vs lib/hello_sign/client.rb in hellosign-api-1.0.5

- old
+ new

@@ -154,14 +154,14 @@ faraday.options[:timeout] = timeout if timeout end if options[:no_auth] elsif auth_token - connection.authorization :Bearer, auth_token + connection.request :authorization, 'Bearer', -> { auth_token } elsif api_key - connection.basic_auth api_key, '' + connection.request :authorization, :basic, api_key, '' elsif email_address - connection.basic_auth email_address, password + connection.request :authorization, :basic, email_address, password else end if proxy_uri connection.options.proxy = { :uri => proxy_uri.nil? ? nil : URI(proxy_uri),