Firebase login, register and logout

Hi, i would like to utilise Firebase to set up a signin screen for my thunkable project. These are my blocks on thunkable first and the second screenshot attached is my login page, the third screenshot is my register page and the last screenshot is for logout page.




What is your question?

It’s great to show screenshots of blocks but if you need help, you also should explain what you expect to happen when you preview the project as well as what actually happens.

Hi, even though I followed through a tutorial on the firebase login for thunkable, I still cannot store the user data to allow logins to happen. For instance, when I have already signed up and tried to log in after registering, the system tells me the user does not exist. Do you have any possible solutions for this?

Check the Authentication section of your Firebase console. What users are listed there under the Users tab?

Have you completed the verification email for each user? What happens if you hard code the email address and password using text strings/blocks instead of text input blocks?

1 Like

Hi i have already enabled the email. And, what does it mean by hard coding?

There is no email that appeared on the screen.

If Authentication–>Users shows no email addresses then the Sign Up process did not work. Firebase should email you a verification message for each sign up email you submit.

When I say hardcoded, I mean something like this:

image

This block will/should not work

image
when you register someone, the registration process will require the user to validate the email to complete registration and therefore you should not register and then immediately take the user to the login screen.

1 Like

It looks like you are not checking the is email verified block value. That value needs to be true before you move on with the sign in process. It’s also possible to turn off email verification in Firebase but that depends on what your plan is for users signing in.

2 Likes