# Sign in with firebase

**URL:** <https://community.thunkable.com/t/sign-in-with-firebase/1690595>\
**Category:** Questions about Thunkable X\
**Tags:** firebase\
**Created:** [January 24, 2022, 7:59am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595 "2022-01-24T07:59:22Z")\
**Posts on this page:** 20\
**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:** [January 24, 2022, 7:59am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/1 "2022-01-24T07:59:22Z")

</div>

Hi, may I ask if anybody knows how to solve the signing in firebase error. I have already verified my account and it has appeared on my firebase users however, after verifying and trying to sign in, they tell me that my account has been in use by another account. this can be seen in the screenshot I have attached . i have also attached my codes for thunkable and my firebase users.

 ![Screenshot 2022-01-24 at 3.52.37 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/b/6b414698fb3db38c8a05c5bb6f06e3ce10f8f979.png)  
 ![WhatsApp Image 2022-01-24 at 3.55.27 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/e/5e5553c0bc4b2de60e86ae8059ae577964d92fcb.jpeg)  
 ![Screenshot 2022-01-24 at 3.58.58 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/1/a1add4dbdf4974aa1d8f3840a78ae69bc8362a1d.jpeg)

---

<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:** [January 24, 2022, 8:36am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/2 "2022-01-24T08:36:22Z")

</div>

You are attempting to sign up with an email address that you have already signed up with.

Where in your blocks is the `sign up` function called?

Why do you have a “Sign In” button and a “Login” button? Do those do different things?

Can you share a link to the project? I think I know what the problem is but I can’t see the relevant 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:** [January 24, 2022, 8:43am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/3 "2022-01-24T08:43:42Z")

</div>

the top blocks i have done is included in the screenshot attached.

 ![Screenshot 2022-01-24 at 4.42.43 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/8/78f97a33754133740dfa56c438608fe52f751cef.jpeg)

---

<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:** [January 24, 2022, 8:56am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/4 "2022-01-24T08:56:10Z")

</div>

@tatiang

---

<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:** [January 24, 2022, 11:03am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/5 "2022-01-24T11:03:46Z")

</div>

Your blocks are confusing and lead to errors. The screens you shared refer to a `button` named **Sign Up Button** but it is not shown in your screenshots.

The more confusing issue is with the **Login Button**. While to depends on the `state` of the `app variable CurrentlySigingUp` it is also changing this variable. This leads to unstable code.

---

<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:** [January 24, 2022, 12:28pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/7 "2022-01-24T12:28:55Z")

</div>

[Sign in Screen with Stored Variables - Thunkable Drag and Drop UI - YouTube](https://youtu.be/tdgVeck-sOI) I followed this Youtube Video Tutorial made by you guys.

---

<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:** [January 24, 2022, 12:29pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/8 "2022-01-24T12:29:08Z")

</div>

@muneer

---

<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:** [January 24, 2022, 12:44pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/9 "2022-01-24T12:44:11Z")

</div>

I was referring to these two  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/9/39d68524d50fe6a8acec37c31f547da09cc2a40c.png)

and

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/a/4ae73ef30cbcf767bb1fc6141d53266c67734a45.png)

You are trying to check the state of the variable and change it in the same time.

---

<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:** [January 24, 2022, 3:10pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/10 "2022-01-24T15:10:58Z")

</div>

That video was made by Thunkable Staff but @muneer and I do not work for Thunkable. We are users just like you.

---

<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:** [January 24, 2022, 4:01pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/11 "2022-01-24T16:01:14Z")

</div>

hi , i fixed the code however, the user after verifying their email, they are still unable to proceed to the application. May I ask what code am I needed to add for the user to proceed to the next screen after verifying their account?

 ![Screenshot 2022-01-25 at 12.00.36 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/0/90e42c0a9402e783086edaf90ffc513d9ebd020a.jpeg)

---

<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:** [January 24, 2022, 4:13pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/12 "2022-01-24T16:13:21Z")

</div>

According to the first screenshot, you are navigating user to `Login Page`. You need to select the page that you want the user to go to.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/8/18bb77e3c18927c656a61ed8480f1243b54ee24b.png)

---

<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:** [January 24, 2022, 4:19pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/13 "2022-01-24T16:19:26Z")

</div>

yes i tried changing to my next screen that I want the user to land on. However, it keeps auto changing it. How may I solve this issue

---

<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:** [January 24, 2022, 4:23pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/14 "2022-01-24T16:23:16Z")

</div>

![Screenshot 2022-01-25 at 12.21.55 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/c/6c1fdc82771cda213eaf71acbb67167d09c82b62.jpeg)  
i cant navigate to the next screen after verfiying.  
the second screenshot shows my code after making the changes.  
 ![Screenshot 2022-01-25 at 12.22.43 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/f/df99b617daf3527a4e79b5a2d751ab1072774d19.jpeg)

---

<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:** [January 24, 2022, 4:26pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/15 "2022-01-24T16:26:31Z")

</div>

There is no `Auto-change` feature in Thunkable. Sometimes the changes did not take place yet and you need to test the screen more than once.

Click the preview button and close the screen then click the preview button again just to be sure you are using the latest code changes.

---

<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:** [January 24, 2022, 4:28pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/16 "2022-01-24T16:28:40Z")

</div>

Hi , i have been sure the navigation have been updated to the correct screen however, I am still experiencing difficulties for the user to login after verifying their email./

---

<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:** [January 24, 2022, 4:29pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/17 "2022-01-24T16:29:41Z")

</div>

> [@teamzaddysn9m](#):
>
> experiencing difficulties

This is a general sentence.

You need to specify what you mean by difficulties.

---

<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:** [January 24, 2022, 4:30pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/18 "2022-01-24T16:30:44Z")

</div>

The difficulties is that my user, after verifying cant be able to login and get navigated to the next screen.

---

<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:** [January 24, 2022, 4:32pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/19 "2022-01-24T16:32:53Z")

</div>

> [@teamzaddysn9m](#):
>
> cant be able to login and get navigated to the next screen

What do you mean by this?

How do you know your user is verified?  
What steps are you taking to do that?

Remember, you can only check the `verified status` when using the `Sign In` block.

---

<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:** [January 24, 2022, 4:35pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/20 "2022-01-24T16:35:48Z")

</div>

It’s not clear to me that you’ve tried debugging your blocks in any methodical way. You can try this:

> [@Debugging in Thunkable X (Video)](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471):
>
> I thought I’d share a process I use for debugging my projects. It involves creating a function that can be used over and over throughout the code blocks in order to help determine where things are going wrong, whether or not certain blocks are ever triggering, and what the values of several variables are. Here’s a screenshot of what I’ve set up: The real power comes from being able to quickly change the delay (and even set it to 0 seconds) or just remo…

And then report back where in your code the problems seems to be. For example, you are checking the value of a switch and only navigating to a new screen if the switch value is true. Is it actually true when you assume it is? How have you confirmed that? Another method is to add a vibrate block and test it on a mobile device. If you feel the vibration, you know that part of the code was run.

Is the user being taken to a _different_ screen than “Food Category List”? You said that happens automatically. Nothing in Thunkable is automatic. You either have a block that does something or you don’t.

More details would be helpful.

---

<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:** [January 24, 2022, 4:40pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/21 "2022-01-24T16:40:04Z")

</div>

> [@tatiang](#):
>
> you are checking the value of a switch and only navigating to a new screen if the switch value is true

Thank you for catching this. I was referring to the first screen he shared which was correct and the `navigation` block was not part of the `switch` condition. It seemed he changed it to make it wrong.

[Next page](https://community.thunkable.com/t/sign-in-with-firebase/1690595.md?page=2)
