firebase-admin

Can't install firebase-admin with npm

给你一囗甜甜゛ 提交于 2020-01-07 08:29:53
问题 I'm trying to run this command to install firebase-admin: npm install firebase-admin --save When I try to run this command, I get the following error: ENOENT: no such file or directory, rename 'D:\MyPath\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\abbrev' -> 'D:\MyPath\functions\node_modules\firebase-admin\node_modules\grpc\node_modules\.abbrev.DELETE' I have tried reinstalling Node.js, I have tried uninstalling a previous version of Node.js, I have tried updating npm

Firebase ID token issued at future timestamp Error in FirebaseAdmin ASP.NET SDK

痞子三分冷 提交于 2020-01-05 08:36:16
问题 I am working on an Ionic 3 application where i have used google firebase for login. So, i needed to verify the firebase token in my back-end. I have used FirebaseAdmin( Version 1.2.0 ) plugin for verifying the token. try { var firebaseAppInstance = FirebaseApp.GetInstance(firebaseAppName); if (firebaseAppInstance == null) { firebaseAppInstance = FirebaseApp.Create(new AppOptions() { Credential = GoogleCredential.FromFile("firebase-servicekey.json") }, firebaseAppName); } var decodedToken =

python firestore issue with authentication

假装没事ソ 提交于 2020-01-04 05:58:10
问题 I am using python with firestore, and trying to create a client in the backend. I am following this tutorial with the following code import firebase_admin from firebase_admin import credentials, firestore cred = credentials.Certificate("cred_file.json") firebase_admin.initialize_app(cred) db = firestore.Client() ref = db.collections(u'table') and getting the following error google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE

How to authenticate an user in firebase-admin in nodejs?

别等时光非礼了梦想. 提交于 2019-12-31 12:14:07
问题 At the moment I am creating a Firebase API on nodejs. I would like to handle all Firebase stuff (like authentication) with firebase-admin on nodejs. But what is the correct way to authenticate a user over nodejs in firebase-admin without the Javascript Firebase SDK on the client side? On the official documentation for admin I didn't find a function called signInWithEmailAndPassword (like as on the client side SDK) for nodejs. There is only a function called: " getUserByEmail ", but this

How to authenticate an user in firebase-admin in nodejs?

心已入冬 提交于 2019-12-31 12:14:06
问题 At the moment I am creating a Firebase API on nodejs. I would like to handle all Firebase stuff (like authentication) with firebase-admin on nodejs. But what is the correct way to authenticate a user over nodejs in firebase-admin without the Javascript Firebase SDK on the client side? On the official documentation for admin I didn't find a function called signInWithEmailAndPassword (like as on the client side SDK) for nodejs. There is only a function called: " getUserByEmail ", but this

How to connect to Firebase by Firebase Admin against a proxy?

不羁岁月 提交于 2019-12-30 11:14:17
问题 Currently, I am using Firebase Admin SDK to connect a Firebase database in a NodeJS server side application. But I do not find an option to connect Firebase via proxy settings, or it can detect my system HTTP_PROXY environment variable. When I run the node script by node index.js , and got some timeout messages like this(I know in my work network, I can not connect to Firebase directly). Error: Credential implementation provided to initializeApp() via the "credential " property failed to

Don't show notification when in foreground

老子叫甜甜 提交于 2019-12-30 11:01:30
问题 I'm sending push notification from my node server using the Firebase admin SDK. But on iOS I only want to show the notification when the app is in the background/terminated and not when in the foreground. Currently it will always show the notification. This is my payload: const payload = { data: { data: 'data', more: 'moreData', }, notification: { title: 'Incoming Call', body: 'Someone is calling you', text: 'This is some text', sound: 'default', click_action: 'com.example.INCOMING_CALL', } }

firebase function get download url after successfully save image to firebase cloud storage

时光毁灭记忆、已成空白 提交于 2019-12-29 08:01:12
问题 I'm having problem getting download url in firebase function after saving image to cloud storage. Below is my firebase http function in typescript to save base64 string to jpeg in firebase cloud storage. when i log result, it always empty. I follow this link to get download url "Get Public URL from file uploaded with firebase-admin". But it give me following error:" SigningError: Identity and Access Management (IAM) API has not been used in project 81673989436 before or it is disabled. " And

Get user's phone number from C++ using Firebase

微笑、不失礼 提交于 2019-12-25 18:57:49
问题 I'm trying to check user's phone number on the server side with C++. Client side looks ok, but on the server side I can only decode JWT from client and find out Firebase ID of the user, but of course this is not what I need. I still need to know phone number of the user, and I understand that I can do this with user ID and Firebase admin SDK, but I can't find admin SDK for C++ or any web-API which I could use from everywhere. So, how can I know user's phone number from C++? 回答1: There is no

Firebase Admin SDK: NoSuchMethodError for setCredential()

若如初见. 提交于 2019-12-25 09:33:58
问题 My application uses the Firebase Admin SDK for Java (recently upgraded from the Firebase Server SDK). It has worked correctly while testing on the local environment, however after deploying it to Google App Engine from Eclipse, the logs are showing this error: com.google.api.server.spi.SystemService invokeServiceMethod: exception occurred while calling backend method java.lang.NoSuchMethodError: com.google.firebase.FirebaseOptions$Builder.setCredential(Lcom/google/firebase/auth