Questions tagged [firebase-admin]

The Firebase Admin SDK is a set of client libraries which enable App Developers to write more custom behavior for their apps by providing server technologies access to Firebase APIs. Currently, there are libraries for Node.js, Java, Python and Go.

Firebase Admin SDK grants elevated privileges on the server-side, to features like:

  • Firebase Database (Realtime Database and Cloud Firestore)
  • Firebase Authentication
  • Firebase Storage
  • Firebase Cloud Messaging
2205 questions
0
votes
1 answer

Firebase data is not going

I am trying to extract some information from Wikipedia. and I want to save those information in google firebase Real time data base. import openpyxl import firebase_admin from firebase_admin import credentials from firebase_admin import db from…
user17601845
0
votes
1 answer

Why can firebase-admin not be run in the browser?

Several questions have asked to run the firebase-admin package in the browser, such as Can I break the rules and use firebase-admin on the client side? Or will trying to workaround errors be for nothing? How to properly use Firebase Admin SDK using…
Martin Geisse
  • 1,189
  • 1
  • 9
  • 22
0
votes
1 answer

firestore not returning any indication that a new document add was succesful or not

I think this is not right, or i am the one not doing it well, so when i add a new document to the firestore collection, i can use the ref to get the id, but when i pass a wrong collection name, I still get the same response, why isn't firestore…
user15317824
  • 370
  • 6
  • 15
0
votes
2 answers

Login user from backend (firebase + node.js)

I'm looking for a way to send user's email and password from the client to my Firebase Backend Functions and make the login from the backend, I find out info about Id tokens and stuff like that, but I need just simple function that receives email…
0
votes
1 answer

Python RecursionError raised Requests 2.26 and Firebase 5.1

Since a week I'm facing a weird bug on my python server. Right now it is running on Requests version 2.23.0 without issue. Because of vulnerability issue I'd like to bump the Requests version to the 2.26.0. My servers runs ok until I try to run a…
0
votes
0 answers

Add admin sdk to an existing initialized app

Is there a way to add admin sdk to an app that's initialized by client firebase already? When I tried to initialize both, it throws an error saying that I can't initialize default app twice. I need client side firebase for login etc, but admin for…
guckmalmensch
  • 973
  • 2
  • 9
  • 22
0
votes
1 answer

Firebase function listening on project A, writing to project B

I have two Firebase projects, A and B. When a user follows another user on Project A, data is written to /followers/{followedUid}/{followerUid}. I would like to perform this same update to Project B. Users of Project A aren't (can't be) authorized…
Ken
  • 212
  • 3
  • 13
0
votes
2 answers

How to download file from firebase storage in python using firebase_admin

I successfully uploaded file to firebase storage using firebase_admin like this: from firebase_admin import db from firebase_admin import credentials from firebase_admin import storage from uuid import uuid4 cred =…
0
votes
1 answer

Constantly scan firestore for new documents get the document ID of it

I am using the Firebase_admin SDK and I want the python script to act as some sort of backend script for my mobile app. Once the user inputs info into the app it updates in Firestore but I need the python script to take that information and do…
0
votes
2 answers

How to upload an image of File type to Firebase Storage from Node.js with the Admin SDK

I have Angular running on the FrontEnd and Firebase Admin SDK for Node.js on the BackEnd. What I want to achieve is to allow the user to select an image from his computer, using a simple of type file. When I receive the user image which is…
0
votes
1 answer

Deleting a Firestore collection with async/await in Python

I'm using Firebase Admin SDK with python and would like to delete a Firestore collection with Async/Await clause. The official document says that (non-Async/Await) deleting should be done like this: def delete_collection(col_ref, batch_size): …
0
votes
1 answer

firebase auth sdk login user with email and passworrd

I'm using firebase auth sdk for an application and I'd like to log the user in. I cannot understand how it works. To create a new user I run this code: from firebase_admin import auth .... def create_user(email, password): user =…
Zelter Ady
  • 6,266
  • 12
  • 48
  • 75
0
votes
1 answer

Python pip firebase-admin issue

Yesterday I wanted to play with firebase messaging and python, but I encountered the following issue when trying to install the package: if I install the package (firebase-admin) through pip, the importation doesn't work in my project. I tried…
billy999
  • 5
  • 1
  • 2
0
votes
0 answers

Firebase: The custom token format is incorrect. Please check the documentation

I am signing my firebase custom tokens based on the JSON doc I got from project settngs > Firebase admin SDK. The same code was working a few days ago and now it's giving me an error: The custom token format is incorrect. Please check the…
0
votes
1 answer

How can I send a Notification via Firebase Cloud Messaging from a cloud function?

The documentation at https://firebase.google.com/docs/reference/admin/node/firebase-admin.messaging.md#getmessaging does not explain where the "firebase-admin/messaging" module is. What is the require path to get this module? for instance const {…
citykid
  • 9,916
  • 10
  • 55
  • 91