All Questions
408
questions
-1
votes
1
answer
36
views
React/NextJS useEffect Timer Incrementing Coins Every Nanosecond Instead of Every Second
I am developing a mining application using React where a timer should increment the user's coins every second. However, the timer is adding coins at an incredibly fast rate (every nanosecond) instead ...
0
votes
0
answers
44
views
Add Popup message After Upload in Nextjs File Sharing APP
I'm building a file sharing app I have build till the upload section when file is uploaded to firebase the progress bar is show to 100% so I need to add a pop up msg after upload. also how to remove ...
0
votes
0
answers
38
views
why my code is not checking email id when signing up
I am trying to implement sign up with google in next.js. I want to apply a check if the entered email id is already present in the firebase authentication. it should alert the user and move the user ...
1
vote
1
answer
32
views
How to use the getIdToken method of firebase user after page reload in nextjs
I am working on a nextjs project, for user authentications I am using firebase's signInWithPhoneNumber for phone number verification, after successfull verification I get a firebase user which also ...
2
votes
0
answers
139
views
incrementalCache missing in unstable_cache nextjs 14
i would like to use unstable_cache here but i am getting error above.
My ideia is caching my data that is coming from firesotre.
can someone build a code that unstable_cache works with firestore
const ...
0
votes
0
answers
31
views
Assessing Efficiency: Custom Claims and Firebase Admin SDK Implementation in Server Development
We have admin pages on our React website using Next.js. Our user types are defined in Cloud Firestore, but checking the user type for admin-only pages incurs a cost for each read operation. To ...
0
votes
1
answer
37
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
81
views
Unable to test firebase messaging on localhost
I am trying to fetch a token from firebase/messaging to use in a notification but i get "messaging/unsupported-browser" error (FirebaseError: Messaging: This browser doesn't support the API'...
0
votes
0
answers
26
views
Implementing Firebase Security Rules to Allow Only Admin and Regular Users to Read and Write, While Keeping Sign-Up/Sign-In Functional [duplicate]
I need to establish Firebase security rules to allow only admin user types and regular users (for every user created in Firebase Authentication, a user document is written in Cloud Firestore where the ...
0
votes
1
answer
38
views
npm run build giving errors in React Hook Functions
i am using nextjs 14
python-course/page.tsx
when i am running npm run build on my project, this page is giving error
this is my package.json
``
{
"name": "frontend",
"version&...
1
vote
1
answer
27
views
Firebase Firestore Not Allowing Authenticated User
I'm struggling with this
I have a project and i'm struggling with getting data from the database from an authenticated user. I feel like I'm missing something.
In firebase.js I have
const app = ...
0
votes
0
answers
32
views
uploading a multiple images o firebase and show them on screen
firstly : when i try to choose image from files and upload it, the page is refreshed.
secondly : when i upload the image, it appears twice on the screen.
thirdly : i want to upload just 4 images ...
0
votes
0
answers
41
views
Sign in with redirect using Google Firebase
As i see google sign in can rather create a user or sign in it so in my case i need to add a document to firestore db then redirect to "/setup-profile" when the user signs up or just ...
0
votes
2
answers
40
views
Warning: Each child in a list should have a unique "key" prop. Even though I have the key property added
I understand the issue here being that each child in a list requires a unique key but I am doing that and it still is not working. Could anyone give me any tips why please? If you could please look at ...
1
vote
1
answer
91
views
Firebase: Fetching data form firebase firestore db [closed]
I'm looking for a decent data fetching approach in nextjs which i can use in my app. In my firestore db i have users documents so i need to fetch auth user data after its successfull auth process and ...