`--token` is deprecated
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, node.js
- Domain
- backend
Research direction
Read firestore/solution-deletes/functions/index.js at the linked line and reproduce the snippet with the reported Node 16 and firebase-tools 11.20.0 environment. Compare its authentication setup with the current documented approach; done means the recursive delete still executes as documented without relying on the deprecated --token option.
Written by the indexing model from the issue text.
Description
When using the snippet I get a 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
Is that because I am using it in a wrong way or is the snipped outdated? How would I use the described service account key in the case of this snippet? I appreciate your help, I am still new to GCP!!
Environment:
firebase-tools: 11.20.0
Node: 16
Steps to reproduce:
use the snipped as described
Expected behaviour:
Execute recursive delete of path
Actual behaviour:
Same, but with deprecation warning
- Dominant language
- JavaScript
- Stars
- 395
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/snippets-node
-
Holis Open
Difficulty 1/5 Under an hour Newbie friendliness 1/100
firebase/snippets-node#420 ·
-
My phone Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
firebase/snippets-node#402 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
firebase/snippets-node#392 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
firebase/snippets-node#375 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
firebase/snippets-node#289 ·
All issues in firebase/snippets-node
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·