firebase-tools

How to list all active firebase ci tokens, or revoke them all

こ雲淡風輕ζ 提交于 2019-12-06 07:31:19
I realize you can create a firebase token by using firebase login:ci You can revoke an individual token by doing firebase logout --token <token> But how do you either a) revoke all of them, or b) list all the active tokens? I want to make sure there aren't leftover tokens that are still active on a project. Ravi Shankar Bharti These tokens are Google OAuth2 refresh tokens (see bullet 4 in Google Identity Platform ). Their number is limited (i guess it is 25 ). The easiest way to explicitly revoke a token is to use firebase logout --token <token> as you mentioned. I do not know of an API for

Im having trouble while serving or deploying Firebase Hosting Functions

谁说胖子不能爱 提交于 2019-12-06 03:16:02
问题 The Cloud Functions emulator requires the module "firebase-admin" to be installed. This package is in your package.json, but it's not available. You probably need to run "npm install" in your functions directory. I was running well my project till i was hit with that issue. Any help, please do tell. Thanks. {Below is the image of what i am getting} 回答1: This is a bug in firebase-tools versions 6.9.0 and 6.9.1 . The solution is to downgrade to 6.8.0 for now: npm install -g firebase-tools@6.8.0

How to login to `firebase-tools` on headless remote server?

无人久伴 提交于 2019-12-05 21:41:41
问题 I am attempting to use firebase-tools on a remote Linux server via Putty. There is no desktop running on this server. When I run firebase login , I'm presented with a long url that I need to copy/paste into any other device's browser: https://accounts.google.com/o/oauth2/auth?client_id=xxxxxxxxxxxx.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww

how to unset firebase cloud functions environment variable

霸气de小男生 提交于 2019-12-05 18:40:50
问题 I have tried using command line functions:config:unset es.tipsinstitue.type as it is given here Environment Configuration. But this does not work for me. It gives me following exception. The filename, directory name or volume label syntax is incorrect. Please help me. 回答1: Don't know whether it is documentation bug or not. Use firebase functions:config:unset es.tipsinstitue.type instead of functions:config:unset es.tipsinstitue.type . This will remove your environment variable 来源: https:/

How to configure timeout of Firebase functions on local

纵然是瞬间 提交于 2019-12-05 09:44:52
I want to do some intense job on firebase functions and it usually takes more than 60 seconds. On production, I can set timeout longer from web console but I cannot find setting for local environment. Following is the command which I'm using to start serving. firebase serve --only functions I'm using HTTPS trigger and following is the command to trigger my function on local. functions-emulator call myfunc --data='{"uid":"user_id_1"}' Is there way to configure timeout on local? You can set the timeout and memory options in local using the RunWith function const runtimeOpts = { timeoutSeconds:

Firebase CLI deploy functions - Error: Failed to initialize a region

拜拜、爱过 提交于 2019-12-05 05:57:23
I'm having trouble doing firebase deploy --only functions for an app on Blaze plan. I have the latest firebase-tools CLI (v 3.5.0). I get the following error: === Deploying to 'myapp1234'... i deploying functions i functions: ensuring necessary APIs are enabled... i runtimeconfig: ensuring necessary APIs are enabled... ✔ runtimeconfig: all necessary APIs are enabled ✔ functions: all necessary APIs are enabled i functions: preparing functions directory for uploading... i functions: packaged functions (1.29 KB) for uploading ✔ functions: functions folder uploaded successfully i starting release

How to set hash-key option for auth:import after default auth:export in firebase?

你说的曾经没有我的故事 提交于 2019-12-04 16:26:57
问题 I've got my users exported the in CLI: firebase auth:export my_users.json The passwords in the exported file should be hashed with SCRYPT, because as the documentation states: auth:export command only exports passwords hashed using the scrypt algorithm, which is used by the Firebase backend. Account records with passwords hashed using other algorithms are exported with empty passwordHash and salt fields. Projects might have passwords hashed with other algorithms after importing user records

How to solve TypeError: functions.https.onCall is not a function?

社会主义新天地 提交于 2019-12-04 15:37:27
I have a Firebase project that I've created earlier this year. It uses Cloud Functions to run some operations on the Realtime Database. Yesterday, I learned about the Callable Cloud Functions , so I decided to try it in my app to see if I should update my existing Functions or not. I've created a simple Cloud Function for testing purposes: exports.testCall = functions.https.onCall((data, context) =>{ console.log(context.auth.uid); return {response:"This means success"}; }); But when I try to deploy this function, I get the error: Error: Error occurred while parsing your function triggers.

How to use Firebase-tools on Windows?

余生长醉 提交于 2019-12-04 14:21:49
问题 I want to get started with firebase on a Windows machine but I don't understand the getting started instructions on https://www.firebase.com/docs/web/quickstart.html. I created a .html file with the following content (copied from the instruction on that page). That works, info is added to the database and retrieved from the database. However I'm lost on Linux like instructions like $ npm install -g firebase-tools on that page. I installed nodejs following the link to nodejs.org on https://www

Firebase Cloud Functions: Import Environment Configurations from File?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 09:27:07
According to Firebase documentation , environment configs can be set by running the command: firebase functions:config:set someservice.key="THE API KEY" someservice.id="THE CLIENT ID" However, I am wondering is there a way to import environment configs from a file e.g. from a JSON file configs.json : firebase functions:config:set configs.json 来源: https://stackoverflow.com/questions/45098388/firebase-cloud-functions-import-environment-configurations-from-file