spaceship/lib/spaceship/connect_api/token.rb in fastlane-2.189.0 vs spaceship/lib/spaceship/connect_api/token.rb in fastlane-2.190.0

- old
+ new

@@ -11,10 +11,11 @@ module Spaceship class ConnectAPI class Token # maximum expiration supported by AppStore (20 minutes) MAX_TOKEN_DURATION = 1200 + DEFAULT_TOKEN_DURATION = 500 attr_reader :key_id attr_reader :issuer_id attr_reader :text attr_reader :duration @@ -78,10 +79,10 @@ @key_raw = key_raw @issuer_id = issuer_id @duration = duration @in_house = in_house - @duration ||= MAX_TOKEN_DURATION + @duration ||= DEFAULT_TOKEN_DURATION @duration = @duration.to_i if @duration refresh! end