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

How to create Firestore Bundles in Node.js?

As per suggestion on Firebase documentation on Firestore bundles, I haven't found the best way to create bundle based on the example given above. I don't know what I have to include in docSnapshot. I know what I have to fill in collection. But what…
Wege
  • 177
  • 2
  • 11
0
votes
1 answer

Firestore serverTimestamp() stopped working

Below stopped working after moving from version ^10.0.2 to ^11.2.0 of firebase-admin. import { firestore } from 'firebase-admin'; const serverTimestamp = firestore.FieldValue.serverTimestamp() How should it be done now? Can't find any documentation…
Max
  • 488
  • 8
  • 19
0
votes
1 answer

Uploading file to firebase storage via cloud functions

I am trying to create a cloud function that stores a file into storage. Oringally I had this on the front-end, but have decieded that I need this done as a cloud function. I am struggling with how to do this. my function looks like: const functions…
Charmalade
  • 645
  • 1
  • 6
  • 14
0
votes
1 answer

How to send localized notifications using the Java Admin SDK version of Firebase Cloud Messaging?

Does anyone know if the Java Admin SDK FCM module supports localization? According to the docs, at least for the REST interface, we can specify body_loc_key and title_loc_key instead of body and title Strings which will then be localized on the…
David Brown
  • 3,021
  • 3
  • 26
  • 46
0
votes
1 answer

Firebase authentication expiration duration

When I use generateEmailVerificationLink , I want to notice the link expiration date to user. But I couldn't find the document...
0
votes
1 answer

Where is the Firebase Admin SDK docs for interacting with Firestore?

The docs for using the Firebase Admin SDK with the Real Time Database are easy to find. https://firebase.google.com/docs/database/admin/start I can't find anything similar for how to use the Firebase Admin SDK with Cloud Firestore? Been scraping for…
Joshua Dance
  • 8,847
  • 4
  • 67
  • 72
0
votes
2 answers

Firebase IdToken not getting validated with Admin SDK

I need to do google signin in flutter app using firebase. Generate idToken at client, and send it to backend Admin SDK for verification of idToken. Issue: I am getting below error when calling method of Firebase Admin…
anonymous
  • 47
  • 10
0
votes
0 answers

Firebase Admin SDK timing out in 'getServerSideProps' Vercel

I want to use the SEO features that come with Next.JS, but I've been rendering the video information client side for the time being. I'd like to start using server side rendering (to use OpenGraph protocol mostly), but this getServerSide props…
jycksyn
  • 31
  • 2
0
votes
1 answer

Can I log in a user with email and password from node using the Firebase Admin SDK

With Firebase's Admin SDK, I want to allow a user to login (verify the user with my Firebase instance) without any JavaScript on the front end. Just an old fashioned POST, with the form data in the request body. Then in node (server side) verify the…
0
votes
0 answers

Still able to sign in with the old email after updating it to a new one - Firebase Auth

I'm using firebase admin SDK to update the user's email, after updating the email with a new one, I'm able to log in to my app with the new email, but I also can log in with the old one. Does anyone know why this happens?
Jairo Py
  • 615
  • 6
  • 12
0
votes
2 answers

Problem with Firebase Realtime DB pagination

I would like to filter results by a certain child with equalTo but also want to paginate the results. I followed this answer but I'm getting this error: startAfter: Starting point was already set (by another call to startAt, startAfter, or…
technophyle
  • 7,972
  • 6
  • 29
  • 50
0
votes
2 answers

Python freezes when trying to import firebase_admin module

I am trying to connect to firebase using python, but when I try to run the code, it doesn't do anything, it just freezes. There is even no message or anything. My code: import firebase_admin from firebase_admin import db from firebase_admin import…
Omar Yacop
  • 305
  • 1
  • 6
0
votes
0 answers

Cannot send notification on devices via token

I am using Firebase and I want that when a user updates a value in the Firebase DB, a notification is sent to other users, so I have followed a tutorial to write functions. So, I have stored the token values in the DB and I use them to send the…
0
votes
0 answers

Error while making request: incorrect header check. Error code: Z_DATA_ERROR

i am really struggling with firebase-admin on vue. I am getting Error: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Error fetching…
Tega Brooks
  • 21
  • 1
  • 1
0
votes
0 answers

Add nuxtJs to existing quasar project for firebase admin-sdk

I have a firebase project using some auth features but now I wish to add some functionality that is only available in firebase using admin sdk. as far as I know, admin sdk cannot run directly in front end so I have thought about integrating nuxtjs…