Hello Guys,
I need some help
I tried to make an login screen with firebase.
I don’t want a sign up screen, I want to put in the email(user) and password by myself.
I am not sure what I did wrong… Here is what I did.
I created and designed a login page and tried to connect it with firebase authentication, I used the API Key and the database URL https://myprojectID.firebaseio.com and got an error, then I made an / at the end of .com same error
Now I used the database URL from Realtime Database and I get:
Please ensure your Firebase Database has data. Check our docs for more information.
That did not help.
I also asked chatgpt how to create a login page and it always said something with an firebase authentification block which I can’t see in my design or block list.
Maybe someone can help me here or via Discord?
Your realtime database URL should be something like https://_________-rtdb.firebaseio.com
Did you follow the tutorial here including the videos?
If it’s still not working, post a screenshot of the blocks you’re using to sign up and sign in.
@tatiang it looks like https://_-default-rtdb.europe-west1.firebasedatabase.app/
This gives me the “error” Please ensure your firebase database has data. Check our docs for more information.
If I use https://-rtdb.firebaseio.com I get Firebase Connection issue: Check API key and Database URL. Refer to our docs for more information.
And yes I followed the tutorial in the videos
Also if I am using the sign in + out template I get the same error with please ensure your firebase… But I can atleast register accounts and log in with them but if I manually create the account I can not login with the data
If you can sign up and sign in using the Thunkable Firebase blocks, can you also get data from one of those accounts? For example, set label’s text to [path to Firebase data] – using cloud variables?
It sounds like your API key is not matching the one in the Firebase realtime database console. Did you check to make sure it’s correctly entered in the Project settings?
I just copied the code from the sign in and up template and it kinda works, but i want to manually write user (email & password) into the database so i dont need the sign up page, but if i create an “account” in the authentification page it doesn’t work
“kinda works” and “doesn’t work” aren’t enough details for someone to help you further with this. Also, were you able to get the data using the method I asked about?