Hi! Like a bunch of people on the forums I'm having issues transferring my users from my previous Team to my new Team.
When the app was still on the old team, I successfully generated transfer_subs for every one of my apple login users. Now, when trying to migrate them over, it ONLY works on users that have already signed in since the transfer, which is not good, I need to transfer the rest and get the new private relay emails.
Here’s a curl of how I get my access token : I’m first generating the secret key using my team key that has apple sign in configured for it.
curl --location 'https://appleid.apple.com/auth/token'
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'grant_type=client_credentials'
--data-urlencode 'scope=user.migration'
--data-urlencode 'client_id=my.app.id'
--data-urlencode 'client_secret=***
This works and I’m getting my access token, then I try to exchange the sub token
curl --location 'https://appleid.apple.com/auth/usermigrationinfo'
--header 'Content-Type: application/x-www-form-urlencoded'
--header 'Authorization: Bearer *** '
--data-urlencode 'transfer_sub=xx.xxxx'
--data-urlencode 'client_id=my.app.id'
--data-urlencode 'client_secret=***’
This is when I receive : {"error":"invalid_request","email_verified":false}
I’ve tried a lot of stuff, even got on the phone with an ex apple engineer and tried a bunch of stuff with him, but to no avail.
I've submitted a report on feedback assistant on the 23rd August, but no answer yet. ID: 14898085