eas build submit issue

I got the following error while submitting my ios build from eas on terminal.
when i type eas submit -p ios --latest

:heavy_multiplication_x: Logging in…
Authentication with Apple Developer Portal failed!
Error: Apple Service Error -22320. Federated Authentication is required

I resolved this issue by manually create apple store connect api key and put that in expo under app credentials