spaceship/lib/spaceship/connect_api/token.rb in fastlane-2.219.0 vs spaceship/lib/spaceship/connect_api/token.rb in fastlane-2.220.0
- old
+ new
@@ -98,10 +98,11 @@
typ: 'JWT'
}
payload = {
iss: issuer_id,
- iat: now.to_i,
+ # Reduce the issued-at-time in case our time is slighly ahead of Apple's servers, which causes the token to be rejected.
+ iat: now.to_i - 60,
exp: @expiration.to_i,
aud: 'appstoreconnect-v1'
}
@text = JWT.encode(payload, @key, 'ES256', header)