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 delete all users in Firebase auth?

I am trying to delete all users I have stored in Firebase auth. Not sure why there is no "button" in the Firebas console that I can click or select multiple users at the same time. Anyway... I tried setting up a callable cloud function like…
user17884417
0
votes
0 answers

firebase-admin illegal invocation error onSnapshot event

Hi I am Getting an Illegal invocation error onSnapshot event Any help? const { Console } = require('console'); const admin = require('firebase-admin'); const functions = require('firebase-functions'); const path = require('path'); const…
0
votes
1 answer

Cannot Type cast using Firebase Admin & Google Cloud Functions

I need to type cast some variables, but for some reason I am finding the types impossible to import via firebase-admin. Here is an over-simplified example. import * as functions from 'firebase-functions' import * as admin from…
0
votes
0 answers

How to display the node variable in javascript?

const admin = require('firebase-admin'); admin.initializeApp({ credential: admin.credential.cert(serviceAccount) }); let fs = admin.firestore(); let auth = admin.auth(); async function start (object){ const info = await…
0
votes
1 answer

firebase admin.auth().getUserByProviderUid is not a function

I want to delete by facebook provider user in my firebase authentication using this question in my nodeJs. But somehow i getting error that getUserByProviderUid is not a function. I attached the error message below. Here is…
0
votes
1 answer

Firebase scheduled cloud function not deleting nodes

I've been having several issues with my Firebase scheduled function. I'm reviewing the logs and documentation and it's running and logs as "Success" and OK, but the desired nodes of my Realtime Database are not updating/deleting. Here is my…
0
votes
1 answer

next js api route or call firestore directly from client side

Hi i'm new to next js and had a few questions regarding using firebase authentication client side and server side. I have both firebase admin and firebase client sdks setup in my project. I have a signup page user routes to. They fill in name email…
me-me
  • 5,139
  • 13
  • 50
  • 91
0
votes
0 answers

How can I retrieve a user's disabled status from firebase auth

I've implemented Firebase Authentication in my app with role-based API using firebase admin. When retrieving a user's data or listing all user's data from firebase, it does not include the user's disabled status. I'm attempting to create the ability…
0
votes
1 answer

How to sign in with Firebase Auth using python

I'm trying to make an app and I can't figure out how to sign in to a user with the python library firebase_admin. I don't have any code as of this moment. Let me know if you can help me out.
0
votes
1 answer

Firebase Admin SDK with Cloud functions for cloud storage

I am trying to use the fire base admin SDK with cloud storage so I can upload images from the server side. For some reason when I type in admin.storage() my functions refuse to upload. I have everything set up well but for some reason that's the…
Julian Castro
  • 109
  • 1
  • 5
0
votes
1 answer

Decoding firebase id token failed, auth/argument error

I'm trying to authenticate using user requests and it appears that I'm it is failing even though I have the correct token (and in fact, from the decoded token, I can pull the uid, which I thought means it succeeded. On the client side, this is where…
Jirara
  • 105
  • 8
0
votes
0 answers

Grpc-message: Policy checks are unavailable

my firebase-admin client gets this message in HTTP2 header: "grpc-message" = "Policy checks are unavailable." and "grpc-status" = "14". client doesn't get any DATA payload in response. Does anybody have any idea about in what situation grpc will…
Lijie
  • 1
  • 1
0
votes
1 answer

Authenticating Firebase Admin SDK on GCE VM with Application Default Credentials

I can't seem to authenticate with the Firebase Admin SDK on a GCE VM. With admin.initializeApp({ credential: admin.credential.applicationDefault(), databaseURL: `https://${PROJECT_ID}-default-rtdb.firebaseio.com`, }); my app indicates Error: 7…
kevmo314
  • 4,223
  • 4
  • 32
  • 43
0
votes
1 answer

Firebase v9 Admin Webhook with Stripe

I have this Firebase v8 syntax to push the Stripe checkout items into Firestore and I would like to migrate it to Firebase v9 please import * as admin from "firebase-admin"; const serviceAccount = require("../../../permissions.json"); const app =…
0
votes
1 answer

firebase python sdk auth.verify_session_cookie() only seems to work once?

I am working on a login workflow in Flask using the Firebase SDK. The flow goes Login then navigate to a secure page. On the secured page we utilize auth.verify_session_cookie() to verify if the user is legitimate. With the code below, the login is…
user1563247
  • 516
  • 1
  • 7
  • 20