All Questions
132 questions
0
votes
0
answers
41
views
Can you download large files to mobile from Firebase Storage?
I've built a React app using Firebase where a list of files is presented to the user to download from Firebase Storage.
This all works fine on a desktop, and it works fine on mobile if the file is ...
0
votes
0
answers
16
views
Firebase and google cloud YouTube integration access token regenerate issue
I am using Firebase and the Google Cloud API to integrate a YouTube account. By using Firebase's access token, I have fetched YouTube account data and uploaded videos to the channel using Google APIs. ...
1
vote
1
answer
34
views
@capacitor-firestore/firebase plugin - ArrayUnion - how to add entry to an existing array
I'm using this plugin for my ReactJS + Capacitor project:
https://www.npmjs.com/package/@capacitor-firebase/firestore#getcollection
However, I don't see any equivalent of arrayUnion in their ...
0
votes
1
answer
53
views
How to make post request to firestore cloud with custom id?
I am using Firebase cloud REST API with redux toolkit query, I want to ask if I can create a new doc with a custom ID.
The following code works, but firebase generates an auto-id.
const baseQuery = ...
0
votes
0
answers
22
views
How to Secure Client-Side Widget/SDK Authentication and Authorization for Third-Party Applications Using GCP?
Title: How to Secure Client-Side Widget/SDK Authentication and Authorization for Third-Party Applications Using GCP?
Question:
I’m building a client-side widget/SDK that will be installed on third-...
0
votes
1
answer
128
views
firebase, linkWithCredential to add new auth provider to an Account
I'm building a registration component in a React app using Firebase Authentication and Firestore. I want to implement the following functionality:
If a user tries to register with Google and they ...
0
votes
0
answers
49
views
Cloud Build Variables are not getting imported into my React Application
Bare with me as I'm new to a lot of these concepts and my terminology may not be correct.
I have a React application that I have running in a Google App Engine. I've set up a Cloud Build to ...
0
votes
1
answer
53
views
Fetch each user data from Firestore failed
I'm trying to fetch each user data from firestore based on the user login, between I'm using React Native and firebase.
Fetch code
const UserInbox = () => {
const auth = getAuth(app)
const ...
0
votes
1
answer
91
views
Title: Firebase Auth Error: Missing Client Identifier [auth/missing-client-identifier] Despite Correct SHA1/SHA256 Configuration
I am encountering an error while trying to send an OTP using Firebase Authentication in my React Native app. The error message I receive is:
vbnet
Copy code
ERROR Error sending OTP: [Error: [auth/...
0
votes
1
answer
44
views
How can I optimize Firebase usage for an admin-only page to prevent excessive reads while ensuring security?
I have developed a page inside a website restricted solely to administrators. I am using react nextjs, and I am utilizing Cloud Firestore for data management. Each time the page is accessed, it ...
0
votes
1
answer
127
views
FirebaseError: Expected type 'DocumentReference', but it was: an array
I need to implement a chat with dates. I use firebase as a backend.
Collection:
chats -> 2h73gbu3id933jeif883ue9(document) -> messages -> [date: x, m: [{}, {}, {}]]
So for a particular date ...
0
votes
1
answer
47
views
Refetch data from firestore db after its updates
I'm working on a project where I fetch data from firebase firestore db and storage. Currently it fetches on a component render, so it doesn't refetch when data updates i need firstly to reload my page....
0
votes
1
answer
41
views
get subcollection on basis of querying parent collection cloud firestore
I want to get the all docs in subcollection after querying parent collection
I want to access all docs in "follow" collection as you can see screenshot only for the logged in user
this is my ...
0
votes
0
answers
40
views
onAuthStateChanged() from Firebase sometimes returns a null user
I have spent all day trying to pin this down.
onAuthStateChanged() from the Firebase SDK sometimes sends a null user to its function parameter. There appears to be no pattern: not dependent on browser ...
-1
votes
1
answer
431
views
Cannot get useAuthState() or useIdToken() from react-firebase-hooks to work consistently
These two hooks will regularly, but not all the time, return an indeterminate state. That is, user is null; loading is false; and error is null.
This occurs when logging in with Google. It navigates ...