codemagic-docs icon indicating copy to clipboard operation
codemagic-docs copied to clipboard

Authenticating with `--token` is deprecated and will be removed in a future major version of `firebase-tools`

Open mikhail-tokarev opened this issue 2 years ago • 1 comments

Discussed in https://github.com/orgs/codemagic-ci-cd/discussions/954

Originally posted by tyler-jewell September 15, 2022 While publishing to firebase hosting using the FIREBASE_TOKEN environment variable, I got this warning:

Authenticating with --token is deprecated and will be removed in a future major version of firebase-tools. Instead, use a service account key with GOOGLE_APPLICATION_CREDENTIALS: https://cloud.google.com/docs/authentication/getting-started

Can we update the documentation to reflect this?

mikhail-tokarev avatar Sep 15 '22 18:09 mikhail-tokarev

As Firebase docs still mention --token in their docs for authentication, I'll leave it as is.

icarusdust avatar Sep 28 '22 09:09 icarusdust

Both methods (Authenticating via service account and Authenticating via token) are in the documentation. There is also a warning note in the docs to say that using a token will be deprecated at some point in the future.

https://docs.codemagic.io/yaml-publishing/firebase-app-distribution/

kevin-suhajda avatar May 24 '23 09:05 kevin-suhajda