firebase-admin Questions
2
Solved
I have a Node (14.3.0) server where I enabled ES6 module imports in my package.json by adding the following line:
package.json:
"type": "module",
According to the firebase-admin...
Biagio asked 10/10, 2020 at 17:40
3
My client app is accessing to Firestore through API created by Firebase Functions. However, the Firebase Functions imports firebase-admin which bypass all the defined security rule. Is there any wa...
Blackandwhite asked 5/9, 2018 at 2:55
1
Solved
Error
When calling admin.auth().createCustomToken() I am getting the following error:
Error: The caller does not have permission; Please refer to https://firebase.google.com/docs/auth/admin/create...
Cahoot asked 12/8, 2020 at 22:35
1
I'm using a cloud Firebase function with Admin SDK to fetch the most recent document from my Firestore collection. Ordering is based on a timestamp field. This value is explicitly provided when the...
Pence asked 6/8, 2020 at 5:54
3
Solved
Is there a way to send the email verification email from my server ?
This is how it's done on the client:
authData.sendEmailVerification().then(function() {
Is there a way to do it on the serve...
Datha asked 14/6, 2017 at 14:31
5
Solved
I'm able to upload a file to my firebase storage bucket via nodejs using the firebase-admin but when I go to the firebase UI I cannot open the file. I noticed that uploaded files via firebase UI wi...
Embolectomy asked 21/12, 2019 at 0:23
5
Solved
I've written the following code for my QR file upload using firebase cloud functions
const functions = require('firebase-functions');
const qrcode = require('qrcode')
const admin = require('fireba...
Giro asked 7/6, 2018 at 15:33
2
Solved
Does Firebase have any trick like { merge: true } to set extra/more custom claims without delete/override the old variables?
Step to reproduce:
admin.auth().setCustomUserClaims(uid, { a: 'value' ...
Kite asked 9/8, 2019 at 11:29
2
Solved
We are starting the development of a web app and were thinking of using Firebase Authentication to handle our sign up flow. However, we are unsure about how the ID token verification works. It seem...
Caudle asked 4/2, 2019 at 14:16
3
Due to new Firebase Cloud Functions (version > 1.0). I only need to call
admin.initializeApp();
Without any parameters.
However when I did like that then run firebase deploy --only functions , ...
Surtout asked 15/2, 2019 at 14:6
2
Solved
I have an error from the firebase :
FIREBASE WARNING: Exception was thrown by user callback. RangeError: Maximum call stack size exceeded
I didn't find my mistake.
I'm very lost in here, ple...
Philbo asked 26/1, 2017 at 18:59
3
Solved
We try to update many users in our multitenant setup, when a whole tenant needs to be enabled/disabled. With this, we sometimes run into QUOTA_EXCEEDED errors, especially for large tenants with man...
Structuralism asked 22/10, 2018 at 9:26
6
I have a project which uses firebase auth with firebaseUI to authenticate users. I have enabled Google, Facebook and email providers. What I need is to remotely logout or disable some of the users....
Minnesinger asked 31/10, 2018 at 16:19
2
Solved
I'm unable to get the array union or increment to work properly in firebase cloud functions.
return docRef.update({
object: {
count: admin.firestore.FieldValue.increment(1),
list: admin.fires...
Bogan asked 7/4, 2019 at 13:33
2
Solved
is it possible to set values with firebase cloud function that includes a where clause?
E.g
admin.firebase.firestore().collection('Accounts').where("imagePathName", '==', docNamed).set({
origi...
Preferable asked 19/6, 2018 at 16:7
1
I am building an application with firebase and next.js
I am fairly new to this set up, completely new to SSR, and the firebase docs are confusing me.
Currently, I am using firebase functions to ...
Hoseahoseia asked 10/6, 2019 at 2:18
2
Solved
I am using the firebase-admin-python SDK to handle authentication between an iOS app and a flask backend (python). This is my backend authentication endpoint, following the firebase guide:
from fl...
Thegn asked 9/8, 2019 at 17:0
2
Solved
I'm sure these are common scenarios, but after researching some hours, I couldn't really find what the common practice is. Maybe someone with more experience in Firebase can point me to the right d...
Arabian asked 5/3, 2020 at 23:29
4
Solved
I have a firebase powered app. The requirement is to update the account password by typing the currentPassword and the newPassword.
On the server (firebase cloud function + admin sdk) i need to ch...
Christlike asked 7/1, 2018 at 21:6
4
Solved
How to get device tokens (FCM registration tokens) from Firebase?
I'm making mobile app using firebase and its server using node.js.
I want to send push notification message from server, but I ...
Glad asked 28/3, 2017 at 4:51
2
I would like a Google Cloud project A (project-a-id) to access the firestore data of another Google Cloud project B (project-b-id). For the same I added project A default service account viz. [emai...
Mantooth asked 9/3, 2019 at 13:5
1
I'm creating a cloud function in firebase and need some help,I'm trying to delete a user form firebase and delete his document from firestore in one cloud function.
How can I make a batch job / tr...
Radon asked 9/2, 2020 at 3:44
4
Solved
I'm currently trying to build a cloud function to export my Firestore data to my Storage Bucket.
The only example I've found on the Firebase DOCs on how to do this:
https://googleapis.dev/nodejs/...
Plosive asked 15/8, 2019 at 15:42
2
I have found reference to this method of initializing firebase functions with a unique UID for the purpose of constraining it with database rules, but I keep getting the error
Error: Can't determin...
Isiahisiahi asked 24/10, 2018 at 0:10
1
Solved
I tried with the following function (node.js v8):
exports.sendComNotification = functions.firestore
.document('Comunicados/{comID}')
.onUpdate((snap, context) => {
console.log('Com tr...
Partly asked 5/12, 2019 at 22:12
© 2022 - 2024 — McMap. All rights reserved.