Firebase-Admin, importing it to react application throws Module not found error
I’m developming simple React application which uses firebase admin.
I’m developming simple React application which uses firebase admin.
I am trying to add a custom claims, isRegistered to firebase. My firestore has another user
collection to keep register info records. Now I am trying to keep a isRegistered custom claim but I can not seem to get it work.
I have the following try catch
I am trying to add a new user with firebase-admin
and then to save a new document in a custom collection.
I am trying to delete all users I have stored in Firebase auth.
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.
In the users
collection in Firestore, I have all users’ uid
as documents, inside each user document I am storing user preferences.
I am a newbie in JavaScript. Recently I have installed firebase admin and kept the code in global scope, database.js. Like this.
I have created a new app in Firebase (not Firestore) via the creation Wizard. I have even entered some dummy data into my database via the web UI. How can I retrieve this data from the fireabase-admin SDK?
This code with a smaller list of tokens works correctly, but I don’t know why it fails to send the notification to all the tokens when individually the token is valid.