All Questions
76
questions
0
votes
1
answer
72
views
Rules in Firebase Realtime Database for CRUD operations in React
I am using two firebase services: the Realtime Database and the Authentication in my React App. I have used the email/password authentication and a basic database for an inventory app consisting of ...
0
votes
1
answer
24
views
How to implement content-owner only access in Firestore Database?
I'm trying to restrict document CRUD operations to document creator only. When creating documents (=notes), they get userid from auth based on the current user, so that is working correctly. I have ...
0
votes
1
answer
44
views
Firebase security questions [closed]
I don't understand how Firebase security work
Hello there, I'm working on a React Native project using Firebase backend. I've finished it, and before uploading it to the app store, I wanted to review ...
0
votes
1
answer
25
views
Create rule in firestore rule not working
I'm trying allow authenticated users who has associated document in firestore databases /User collection (i.e. a document with users uid as its documentId) to view, edit or delete their own documents. ...
0
votes
1
answer
193
views
Error with Firebase and Environment variables in Vercel and React
Firebase's firestore rules are like this
rules_version = '2';
cloudservice.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
allow ...
0
votes
1
answer
94
views
Why is getDocs Function not Consistently Retrieving Firestore Data?
I'm currently working on a project that involves fetching data from a Firestore database using Firebase in a React application. The specific problem I'm encountering is with the getDocs function, ...
1
vote
0
answers
37
views
Firestore security rules always fail first evaluation and then succeed for second
I have a React JS app that uses Firestore Web SDK (modular). The security rules (see below) always fail the first evaluation and succeed in the second.
Both evaluations show sequentially in the ...
1
vote
0
answers
149
views
Integration of Firebase's createUserWithEmailAndPassword with Firebase App Check: Invalid Token Issue
I'm currently in the process of integrating createUserWithEmailAndPassword and other Firebase functions with Firebase App Check for added security. After enabling the "Enforce Authenticated" ...
0
votes
0
answers
76
views
Securing Firebase createUserWithEmailAndPassword with Firebase App Check
I'm integrating the createUserWithEmailAndPassword function in my React.js app to manage user registrations. The function triggers the URL https://www.googleapis.com/identitytoolkit/v3/relyingparty/...
1
vote
1
answer
50
views
Firebase Security Rules - Error getting document: FirebaseError: Missing or insufficient permissions
I'm writing a react application that signs in a user via Google/Facebook using firebase auth and then looks to create a user in the users table if the user doc is not yet in the firestore users table. ...
0
votes
1
answer
140
views
How to add a live counter in react that displays a firestore collection value securely?
Goal: To have a live counter on my React Firebase site that displays the current number of views on my youtube channel.
Method: I am retrieving the view count by calling the Youtube API from a ...
0
votes
2
answers
77
views
React Firestore Hooks fail to update when read permission is not longer denied
I am using react-firebase-hooks, specifically useDocumentData, in order to fetch a document and keep it updated.
When the hook is initialized, reading the doc is not permitted yet (due to a certain ...
0
votes
0
answers
27
views
firestore security rules for nested documents
I have Two collections in firestore
userTbl
instituteTbl
In userTbl, I have store schoolid of specific user in schoolid field.
Now, I want that loggedin user should able to get access of data of ...
1
vote
1
answer
366
views
Firestore Security Rules and Next.js restricting access (RBAC)
I am currently working on an app where I need to restrict access for reading, writing (etc..) a document in a collection. However, I am still able to fetch the data.
Brief explanation of the structure ...
0
votes
1
answer
155
views
Why does Firebase still saying I have to change security rules, even if I changed them three days ago
I changed security rules to:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow write: if request.auth != null;
...