My first app has: Firebase Authentication problem

I am building my first app and getting an error:

Configuration Error

Firebase Authentication is not configured correctly in this application. Please ensure all necessary Firebase environment variables (e.g., NEXT_PUBLIC_FIREBASE_API_KEY) are correctly set up. If you are an administrator, check the console logs for more details.

I am not a developer. I have just entered 10ish prompts and Firebase Studio has built an app. Now when I try to log in to it (the app requires you to log in), I am getting a message that something is wrong. I asked Gemini in the Studio to help in all possible ways, and none of them worked.

Anyone else had somethng simmilar? Any pointers are wellcome, just don’t tell me to code something! :slight_smile:

Hi @Andrija ,
It looks like you need to set up variables (like project ID, API key, etc.) for your Firebase back-end. In my case these secrets are stored in a local file, which is excluded from Github.
I am not sure what you want to do but try to ask guiding prompts like “tell me why I need it and what should I do with it”.
Good luck!

Hi Xanax_king,

I managed to get my Cloud Firestore connected, and I can see my app is adding users to it now.
What I can not seem to be able to do is to enable users to upload documents (small text files) via the uploader generated gy Firebase Studio.

I just get: “Console Error
FirebaseError: internal” - that doesn’t really tell me what the issue is. Any pointers where to search for a clue on how to fix that?

I am not an expert, so treat whatever I put in here with a pinch of salt.
There might be many reasons, from storage rules to anything that happens in between a browser and the storage. Ask Gemini to add front- and back-end logs so that you can point out where the process breaks. Front end logs you can see in the browser console and back end usually in the terminal.

Have you setup the storage in your firebase console?

Yes, I made both Storage and Firestore Database.

I’m the same. This is where things tend to go haywire with the AI. Users, storing user content, etc. – I can do the app with a single mock user, and I’ve gotten auth working once, but then things like uploading avatar images and so on just start throwing errors all over.

Just let the AI know you want live data for your avatar image.. I’ve built a full scale app with firebase studio include user data upload and stuff all with the help of the prototyper.

I have a similar problem. Created an app with the Prototyper, and as soon as I tried to enter a user things went wrong and since then I am getting an error message. So, I contacted Support and the Support Officer tried to resolve the issue with help of a bit of evidence I provided. Unfortunately, she could not resolve the issue, and it had to be sent to their Engineers who are, hopefully, now working on the problem. I tried everything I could think of, to no avail.
It simply states that I have not entered my keys correctly, which is not correct. I did. I doublechecked, and all keys are correct and available. Also, when I enter commands in the code to show the keys in the browser console during runtime, it shows the correct keys. So that way I am sure that the correct keys are in fact seen by the app in the browser. I think (have no proof whatsoever) that the problem is in the authentication process itself, and it just throws the most nearby error message, which, in this case, is not on the mark. We are now almost a week in the process, and I am still awaiting the solution. I hope it can be resolved, the Prototyper could not deliver its results until sofar, which is a pity, I was looking forward to the results and working with the AI model. Patience is requested I guess…