There are two apps under our account that need to be transferred to other teams, namely A app and B app.
We created a new p8 file for each app in the developer website, and then followed the apple document to generate the transfer identifier. A app can be generated normally, but B app cannot be generated, and the error http: 400, { error: 'invalid_grant' };
The process is as follows:
Generate clientSecret according to the key and p8 file corresponding to the sent teamID and p8 file and clientId, i.e. bundleid. ✅
Generate accessToken using clientId and clientSecret. ✅
Generate transfer identifier (auth/usermigrationinfo). This interface reports an error http: 400, { error: 'invalid_grant' }. ❌