# Firebase login, register and logout

**URL:** https://community.thunkable.com/t/firebase-login-register-and-logout/1644704
**Category:** Questions about Thunkable X
**Tags:** firebase
**Created:** [December 3, 2021, 5:44am UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704 "2021-12-03T05:44:10Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![teamzaddysn9m](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@teamzaddysn9m](https://community.thunkable.com/u/teamzaddysn9m)
#### Post date: [December 3, 2021, 5:44am UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704/1 "2021-12-03T05:44:11Z")

</div>

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.

 ![Screenshot 2021-12-03 at 1.40.17 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/a/7abec8ac31eac2d58f832023acf902b38ac43e1f.png)  
 ![Screenshot 2021-12-03 at 1.40.24 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/d/9d87bac5c1c611414e26f0cef208e231c877e623.png)  
 ![Screenshot 2021-12-03 at 1.40.32 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/f/2fb293195bf807dccb958678e542e4690ad210fe.png)  
 ![Screenshot 2021-12-03 at 1.40.39 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/b/bb4499a69af0e8cc2f86bd74e4a28a39e859bb7b.png)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 3, 2021, 6:32am UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704/2 "2021-12-03T06:32:19Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![teamzaddysn9m](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@teamzaddysn9m](https://community.thunkable.com/u/teamzaddysn9m)
#### Post date: [December 3, 2021, 6:52am UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704/3 "2021-12-03T06:52:28Z")

</div>

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?

 ![Screenshot 2021-12-03 at 2.51.10 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/051d2f7bddfcea05d98ce65c2e01663eee3b4557.png)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 3, 2021, 7:32am UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704/4 "2021-12-03T07:32:08Z")

</div>

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

 ![Screen Shot 2021-12-02 at 11.30.03 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/4/d450a6e66eea19e49f9abce91e2e4225cd3f3676.png)

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?

---

<div class="post-metadata">

### Author: ![teamzaddysn9m](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@teamzaddysn9m](https://community.thunkable.com/u/teamzaddysn9m)
#### Post date: [December 3, 2021, 7:44am UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704/5 "2021-12-03T07:44:33Z")

</div>

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

---

<div class="post-metadata">

### Author: ![teamzaddysn9m](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@teamzaddysn9m](https://community.thunkable.com/u/teamzaddysn9m)
#### Post date: [December 3, 2021, 8:09am UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704/6 "2021-12-03T08:09:26Z")

</div>

There is no email that appeared on the screen.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 3, 2021, 8:36am UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704/7 "2021-12-03T08:36:06Z")

</div>

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](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/e/ce7eb3dafbde5ab7a3dc1f1eb696fca9f7ca6858.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [December 3, 2021, 8:44am UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704/8 "2021-12-03T08:44:47Z")

</div>

This block will/should not work

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/4/94e94b70d099a1c9dfaa970ec1abd5c5150b56a7.png)  
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.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 3, 2021, 3:27pm UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704/9 "2021-12-03T15:27:26Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [March 3, 2022, 3:27pm UTC](https://community.thunkable.com/t/firebase-login-register-and-logout/1644704/10 "2022-03-03T15:27:49Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
