spaceship/lib/spaceship/connect_api/api_client.rb in fastlane-2.161.0 vs spaceship/lib/spaceship/connect_api/api_client.rb in fastlane-2.162.0
- old
+ new
@@ -15,21 +15,21 @@
#####################################################
# @!group Client Init
#####################################################
# Instantiates a client with cookie session or a JWT token.
- def initialize(cookie: nil, current_team_id: nil, token: nil, another_client: nil)
+ def initialize(cookie: nil, current_team_id: nil, token: nil, csrf_tokens: nil, another_client: nil)
params_count = [cookie, token, another_client].compact.size
if params_count != 1
raise "Must initialize with one of :cookie, :token, or :another_client"
end
if token.nil?
if another_client.nil?
- super(cookie: cookie, current_team_id: current_team_id, timeout: 1200)
+ super(cookie: cookie, current_team_id: current_team_id, csrf_tokens: csrf_tokens, timeout: 1200)
return
end
- super(cookie: another_client.instance_variable_get(:@cookie), current_team_id: another_client.team_id)
+ super(cookie: another_client.instance_variable_get(:@cookie), current_team_id: another_client.team_id, csrf_tokens: another_client.csrf_tokens)
else
options = {
request: {
timeout: (ENV["SPACESHIP_TIMEOUT"] || 300).to_i,
open_timeout: (ENV["SPACESHIP_TIMEOUT"] || 300).to_i