Error Obtaining team-scoped identifiers

Hello,

I'm trying to migrate Apple Signed in users from one account to another during a migration.

I followed every step in this documentation https://developer.apple.com/documentation/accountorganizationaldatasharing/creating-a-client-secret, and my save algo works for the old account but when I try to get the team identifier for the new account I'm getting this error

Response Code 400 {"error":"invalid_client"}

Generated JWT token for reference:

eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiIsImtpZCI6IkpRWlY1VENUTTcifQ.eyJpc3MiOiI3MzVBSzlGVVYzIiwiaWF0IjoxNzA0NDU2MTc5LCJzdWIiOiJjb20ud2lsZGxpZmVzdHVkaW9zLmFma3NvY2NlciIsImV4cCI6MTcwNDQ1NjIwOSwiYXVkIjoiaHR0cHM6Ly9hcHBsZWlkLmFwcGxlLmNvbSJ9.iv3YPtOzcJxby2Zj-gCXkJEUmoh66DJ096Z3FlfjL2-u3dgVPZtcClhLnuUDPxOARUktYbH2XCJfM9wsusid0Q

{'typ': 'JWT', 'alg': 'ES256', 'kid': 'JQZV5TCTM7'} {'iss': '735AK9FUV3', 'iat': 1704456179, 'sub': 'com.wildlifestudios.afksoccer', 'exp': 1704456209, 'aud': 'https://appleid.apple.com'}