I’ve enabled sign in with apple and it works well on my localhost:3000 in my nextJS application. However when i deploy into a VM that is accessed by a public domain, it does not work and returns 502.
While I haven’t run into this exact issue, your guess re the omitting the teamID and keys seems like a good one to me. Are you able to obtain/add those and confirm whether or not that is the issue?