-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App Store Connect API client JWT expiration #176
Comments
Actually JSON web token expiration is set to 19 minutes from the time they are created, and then they are discarded once less than 30 seconds is left until the hard expiration. |
I may have run into this yesterday: After successfully uploading
|
Will be fixed by #184. |
As of version 0.14.1 the default expiration duration of App Store Connect API JSON Web Tokens used by used byAppStoreConnectApiClient
is just 30 seconds [src], while it can be up to 20 minutes in case scope is not specified, and even longer if token scope is defined. See App Store Connect API docs about generating tokens for API requests.In some cases App Store Connect API respons with
401 Unauthorized
when completely valid JWT is provided in request headers, and this can makeapp-store-connect
commands fail unexpectedly. We should reuse JWTs as long as possible to avoid such cases. In order to achieve this:increase the expiration time for generated JWTs from 30 seconds to something close to 20 minutes,The text was updated successfully, but these errors were encountered: