Description
Describe the solution you'd like
It would be great that, before building, testing and releasing the build, to check if the connection to App Store Connect is still active. I've already had several times that the login to App Store Connect is expired for some unknown reason. You only get that warning at the end of a build, which is in my case 15-20 minutes later.
It's better to know this upfront, so you can re-connect your account before building. This could possibly save an extra 15-20 minutes in my use case, as I don't have to run the whole build twice.
Describe alternatives you've considered
The only alternative would be to manually check on the Distribute > Stores page if the connection is still active or expired.
Additional context
This problem usually happens in step 23 of the build:
2019-08-16T09:37:54.4007730Z ##[section]Starting: Create distribution
2019-08-16T09:37:54.4012570Z ==============================================================================
2019-08-16T09:37:54.4012700Z Task : App Center distribute
2019-08-16T09:37:54.4012840Z Description : Distribute app builds to testers and ***s via Visual Studio App Center
2019-08-16T09:37:54.4012940Z Version : 3.156.0
2019-08-16T09:37:54.4013010Z Author : Microsoft Corporation
2019-08-16T09:37:54.4013110Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/app-center-distribute
2019-08-16T09:37:54.4013200Z ==============================================================================
2019-08-16T09:44:50.7225470Z ##[error]{"code":"two_factor_authentication_error","message":"Error: Failed to publish to store. Error: apple connection is not valid for ***: XXXX"}
http response code: 400
2019-08-16T09:44:50.7243110Z ##[section]Finishing: Create distribution