Firebase App Distribution Error 401

All of a sudden, our Firebase App Distribution step stopped working and kept on failing producing the following error:

Error: failed to upload release. HTTP Error: 401, Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

The error could be crystal clear but what is not clear for me is, how am I suppose to fix this? Here are the things I have done:

  • Checked if the firebase credentials is working, it is
  • Checked if the firebase token is correct, it is
  • Checked if the firebase project id is setup correctly, it is
  • Added service account credential file in the service account field

I think we have configured everything correctly and not sure what else there is to do.

Can you someone point out the next step? What else am I missing?