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...

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...

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...

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...

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...

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' ...

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...

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...

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...

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...

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...

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 ...

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...

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...

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/...

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...

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...

© 2022 - 2024 — McMap. All rights reserved.