firebase-admin Questions
3
Solved
I'm really new to firebase and to be honest I find queries hard to write. I'm working on a script in python using firebase_admin and i'd like the query/answer to be in python code, but in any other...
Fricandeau asked 24/2, 2019 at 23:28
2
Solved
I am trying to list all users of my Firebase project using Firebase Admin SDK.
The below func to list users works fine when listing from Cloud Auth Service.
const admin = require('firebase-admin');...
Oruro asked 24/6, 2022 at 21:4
2
Solved
So, maybe I missed this somewhere in the docs but I couldn't find anything of the sort.
I wan't my users to have to type in their current password to be able to create a new one. From what I unde...
Peregrination asked 12/12, 2016 at 19:32
5
Solved
I'm a tad baffled as to why this bit of code has suddenly decided to fail when it had been working fine for a week.
import firebase_admin
from firebase_admin import firestore, credentials,db, auth
...
Elan asked 4/5, 2023 at 16:23
10
Solved
I know you can pull the server timestamp in web, ios, and android - but what about the new Cloud Functions for Firebase? I can't figure out how to get the server timestamp there? Use case is me wan...
Lancey asked 23/4, 2017 at 4:15
4
According to the Docs, I have to pass the filename to the function in order to upload a file.
// Uploads a local file to the bucket
await storage.bucket(bucketName).upload(filename, {
// Support ...
Danger asked 11/3, 2019 at 22:27
4
I'm was trying to connect to my Firebase app by following the docs, but ESLint is complaining. I have already checked a related question, but the solutions proposed there doesn't seem to work for m...
Gaut asked 27/10, 2021 at 23:41
7
I'm trying to create a firebase cloud function. So I would to run my firebase cloud function locally.
But it do not work how to setup authentication.
I have installed firebase tools : https://fire...
Canzonet asked 27/6, 2019 at 10:53
4
I am building an Express.js app, using the Firebase Admin SDK for several features such as ID Token validation and Cloud Firestore access. In my main app.js file, I am initializing the app as:
con...
Gabriella asked 14/1, 2020 at 2:16
5
Solved
Is it possible to get document back after adding it / updating it without additional network calls with Firestore, similar to MongoDB?
I find it stupid to first make a call to add / update a docum...
Blemish asked 6/10, 2018 at 10:45
5
Solved
I'm trying to send a message to a topic with FCM in a Firebase Cloud Function triggered when a Firestore document (a message) is created. Subscribing to the topic (also done with Functions) and tri...
Qualm asked 3/6, 2022 at 20:6
9
Is there a way to list all the users using the firebase admin sdk? Documentation only shows getting one user either by uid or email.
Willette asked 7/12, 2016 at 7:40
4
Solved
Getting this error in Next.js _middleware file when I try to initialize Firebase admin V9. Anyone know how to solve this issue?
./node_modules/@google-cloud/storage/build/src/bucket.js:22:0
Module ...
Gallous asked 14/2, 2022 at 3:8
5
Solved
I am using Flutter to build an app that accesses the Firebase database. All good from the Flutter side....but I am new to Node.js and Cloud Functions. I am trying to create a Node.js function to re...
Maximilien asked 12/6, 2019 at 16:4
5
Solved
I have cloud function code code like this:
console.log(`ts: ${(element.get('expire') as admin.firestore.Timestamp).toDate().toUTCString()} now: ${admin.firestore.Timestamp.now().toDate().toUTCStrin...
Seicento asked 8/3, 2019 at 20:32
3
Solved
I'm wondering why is the Timestamp object is not working as I expect?
It works in test environment (I use Mocha), but throws error when it has been deployed.
index.ts
import { Timestamp, QueryS...
Moonlight asked 2/10, 2018 at 13:4
4
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 us...
Philippines asked 4/7, 2017 at 7:31
2
Is it possible to import FieldValue from firebase-admin npm using this style?
import { FieldValue } from 'firebase-admin/firestore';
By default my visual studio Code imports in this way:
impor...
Adjunct asked 3/1, 2019 at 0:45
2
I have a Lerna MonoRepo project setup.
Like
root/
lerna.json
packgae.json
package.lock.json
packages/
app1 - Create react app (with firebase sdk dependency)
app2 - Next Js app (with firebase-...
Sabbatical asked 12/8, 2021 at 12:49
5
this is the request that I made using node
// Initialize the default app
var admin = require('firebase-admin');
var app = admin.initializeApp({
credential: admin.credential.applicationDefault(...
Snowmobile asked 18/2, 2020 at 23:11
3
Solved
I am following the firebase documentation here to set custom auth claims for users logging into my app for the first time using firebase auth + identify platform but it does not seem to be working....
Saleratus asked 25/7, 2022 at 13:27
4
I was wondering how could I get the url from the file I am uploading to the firebase storage?
Here is my code:
import firebase_admin
from firebase_admin import credentials, firestore, storage
cr...
Incombustible asked 21/9, 2018 at 21:23
2
Solved
Inside the Firebase Console, under the Cloud Messaging view, users are able to create test notifications. This functionality also allows you to schedule the time at which the notification will send...
Warrenne asked 16/3, 2020 at 21:51
3
Solved
I'm creating a app where I should be able of managing users access. The admin should have permissions of creating, deleting and editing users accounts.
I'm using firebase for creating users accoun...
Veneaux asked 21/1, 2019 at 12:53
5
Solved
I'm trying to send notifications to a specific device with Firebase but am getting the following error:
{"r": {"results":[{"error":{"code":"messaging/mismatched-credential","message":"The creden...
Rideout asked 9/2, 2018 at 19:19
© 2022 - 2024 — McMap. All rights reserved.