Skip to main content
0 votes
2 answers
37 views

FCM push notification error: code: 'messaging/invalid-payload

I'm trying to implement FCM push notifications in a react.js app using Firebase Realtime Database Cloud functions, for the first time and stuck at this: error: Message must be a non-null object I've ...
Iam Wayne's user avatar
  • 561
0 votes
0 answers
41 views

Can't access Firestore data - alway return error 5 NOT_FOUND

I'm trying to access Firestore collection from NodeJS. The database is not the default one but is gymapp-data and project is gymapp-xxxxx. No security rules actived: I'm using the service account ...
loreeemartiii's user avatar
0 votes
2 answers
119 views

How to shorten the expiration time on Firebase auth tokens for login session?

I am trying to test my refresh token logic using Firebase auth but waiting an hour for it to expire is maddening. The documentation doesn't seem to mention anything about customizing the time: https://...
Bhalli Bhai's user avatar
0 votes
0 answers
32 views

FIREBASE FATAL ERROR: Database initialized multiple times. Please make sure the format of the database URL matches with each database() call

I've written this js code for a firebase cloud function for a realtime database: const { onValueUpdated } = require("firebase-functions/v2/database"); const admin = require("firebase-...
Mihai Condrici's user avatar
1 vote
0 answers
129 views

Firebase failing to authenticate token

I'm using Firebase on my front-end to register a user, then sending the token to the backend to sync it with my back-end database. I have the following simple snippet: let _result: FirebaseUser = ...
Big_Bad_E's user avatar
  • 817
0 votes
0 answers
29 views

Firebase Authentication incorrectly invalidating tokens generated with signInWithEmailAndPassword

I am developing a system, and I'm currently handling the authentication of users. Here, I'd like users to sign in with their email and password using Firebase. Using the user credentials generated ...
Zhe Hin Yap's user avatar
1 vote
0 answers
25 views

Firebase Realtime Database Emulator - Python Listener Not Triggering on Data Changes

I am running a Firebase Emulator with a Realtime Database and trying to create a listener in Python that detects changes inside the database. My Code: import os import firebase_admin from ...
Mr T's user avatar
  • 81
2 votes
1 answer
42 views

How to add data to Firestore database using python?

I am trying to add test_data dictionary to my Firestore database using python. It is not working since .set() method is not showing there anymore by vscode auto suggestion. from datetime import ...
november's user avatar
0 votes
0 answers
57 views

Google authentication failed: Firebase ID token has incorrect \"aud\" (audience) claim

I’m encountering an issue with Firebase authentication on my backend. My frontend team and I are using Firebase Authentication to authenticate users with Google, but I’m getting the following error: ...
Khadija Fatima's user avatar
0 votes
1 answer
615 views

Firebase messaging().sendMulticast(...) // <--- sendMulticast does not exist on type Messaging

Recently, I've been working on a new feature for my project. But I encountered lot of issues with the back-end while implementing the feature. // Use messaging() directly from firebase-admin ...
ShibaDev's user avatar
0 votes
1 answer
55 views

SSR Auth through FirebaseServerApp fails when using Website restrictions on Firebase API keys

I am trying to get server-rendered data containing user information. I am using a service worker to attach an "Authorization" header including the Firebase Auth idToken as described in ...
samurai jack's user avatar
6 votes
1 answer
139 views

Firebase stuck in ACCESS_TOKEN_EXPIRED even though key is new

Up until recently I was able to run queries with the Firebase SDK using Node.js. Now I am getting a message that ACCESS_TOKEN_EXPIRED but I created a new key and the expiration is never. If I see in ...
lesolorzanov's user avatar
  • 3,623
1 vote
1 answer
126 views

access firestore database other than (default) in python

I cannot access a Google Firestore database other than one named "(default)". I looked other other solutions online, and added a key to my credential "databaseId" but that doesn't ...
tom's user avatar
  • 1,077
0 votes
1 answer
318 views

FCM Send MulticastMessage

I run tihs code: cred = credentials.Certificate('x.json') firebase_admin.initialize_app(cred) registration_tokens = [ 'GET REAL TOKEN1', 'GET REAL TOKEN2', ] message = messaging....
Alireza.e's user avatar
0 votes
0 answers
39 views

Error trying to verify token generated by Firebase ADMIN SDK

I'm trying to verify a token generated by Firebase ADMIN. Here's the flow: A function in Firebase ADMIN is called. const additionalClaims = { veiculoId, sinistroId }; const token = await getAuth()....
ridermansb's user avatar
  • 11.1k

15 30 50 per page
1
2 3 4 5
158