# 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:** 2

<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:44pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/22 "2022-01-24T16:44:52Z")

</div>

> [@muneer](#):
>
> taking to do that?

These are all my codes. And my firebase users which show that the user has already been signed up and in however on the application, the user is unable to navigate to the food category list despite me already coding it to be navigated to that screen.

 ![Screenshot 2022-01-25 at 12.42.48 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/4/84c81c8dc33755d30e2bf125fc383adafe46c1c5.jpeg)  
 ![Screenshot 2022-01-25 at 12.42.56 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/9/69e7d17086a2a85035235df68e1b4747f60939ec.jpeg)  
 ![WhatsApp Image 2022-01-25 at 12.37.22 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/c/bc6dbcea51b482d590dc688508854a3b978e9b6e.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, 5:00pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/23 "2022-01-24T17:00:44Z")

</div>

I know you were replying to @muneer but… have you tried the debugging method(s) I described? You need to figure out why the single `navigate` block in your code isn’t firing. The only way to do that is to create visual signals within your blocks. Because after the sign in block starts, it runs the `do` section. So your task is to figure out where in the `do` section it’s getting stuck.

---

<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, 5:06pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/24 "2022-01-24T17:06:00Z")

</div>

This code should not work

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/d/8d4a26f5aed849b0b7d13d63723efe013f936889.jpeg)

Therefore the default action will be `Sign Up` and not `Sign In`.

This block has wrong conditions and will never reach the stage to `navigate` to another screen

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/9/59afcbe5cd828954973d52c979bfee870eefc993.jpeg)

I encourage you to use `Direct Logic` instead of `Reverse Logic`. Use `IF isemailverfied` instead of using `NOT isemaiverified`. You are more interested in what will happen when the email is verified. Leave the error message in the `ELSE` part.

Please follow the `DEBUG` approach mentioned by @tatiang so you know the flow of your codes.

---

<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, 5:20pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/25 "2022-01-24T17:20:31Z")

</div>

This is a problem, too:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/f/2fef25f0577c29eb178ded78717f134ce7cfcf9c.jpeg)

The blocks will be evaluated this way:

1. Is email verified true?  
No → “Please verify your email.”  
Yes → “Account Created!”

**That’s it. Full stop.** You’ve already checked to see if `is email verified` is true or false. The “else” section of that block will never fire. You can’t have a condition that says “if yes then do this, if no then do that, otherwise then do something else.” It’s either yes or no, true or false. There’s no third possible value for a binary block.

Change this so it says “if is email verified?” … / else …

Personally, I check for an error first, then if that’s false, I do the if/else with the email verified. I know it’s tempting to try to come up with a single block to handle all of those conditions but honestly, I think that’s where you’re struggling. There’s too much going on at once.

---

<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, 5:37pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/26 "2022-01-24T17:37:18Z")

</div>

Here’s what I would do:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/2/125d56a08ef767b85b322b8f7d5ed9299404996f.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: [January 24, 2022, 5:39pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/27 "2022-01-24T17:39:31Z")

</div>

And with debugging blocks:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/e/ce8c39d2d56d4c89a26af3ce280ce156ac08b261.png)

That way, you can watch and see if this happens:  
A  
B  
C  
D

or maybe just  
A  
B

etc.

Then you know where the code stopped/skipped.

---

<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:10pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/28 "2022-01-24T19:10:45Z")

</div>

is this what you mean?

 ![Screenshot 2022-01-25 at 3.09.36 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/d/7d66d6ae88c7a6eb5d2377ba3f127eff9c605c19.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: [January 24, 2022, 7:19pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/29 "2022-01-24T19:19:47Z")

</div>

Possibly… does it work? You haven’t accounted for the green `error` block as I demonstrated in the screenshot above but as long as you’re not getting an error, that should be fine. It’s not good practice to place blocks after/below a `navigate` block because they will most likely not run but again, if it works then it works.

---

<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:25pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/30 "2022-01-24T19:25:48Z")

</div>

hi, it does not work unfortunately i am not able to proceed to the next screen after verifying my account.

---

<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:26pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/31 "2022-01-24T19:26:19Z")

</div>

ou haven’t accounted for the green `error` block as I demonstrated in the screenshot above  
which do you refer to?

---

<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, 7:31pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/32 "2022-01-24T19:31:59Z")

</div>

> [@teamzaddysn9m](#):
>
> hi, it does not work unfortunately i am not able to proceed to the next screen after verifying my account.

And yet, you’re not providing any new details! And I still don’t know if you tried the debugging methods I suggested.

> [@teamzaddysn9m](#):
>
> ou haven’t accounted for the green `error` block as I demonstrated in the screenshot above  
> which do you refer to?

You can see the `if error` blocks here: [Sign in with firebase - #26 by tatiang](https://community.thunkable.com/t/sign-in-with-firebase/1690595/26).

---

<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 25, 2022, 10:14am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/33 "2022-01-25T10:14:24Z")

</div>

It would be easier if you share the project link either here or in private message.

---

<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 25, 2022, 5:18pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/34 "2022-01-25T17:18:40Z")

</div>

> [@tatiang](#):
>
> he `if error` blocks here: [Sign in with firebase - #26 by tatiang](https://community.thunkable.com/t/sign-in-with-firebase/1690595/26).

hi, I changed the codes that you have suggested however, there user after verifying the email is still not lead to the food category list

---

<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 25, 2022, 7:47pm UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/35 "2022-01-25T19:47:55Z")

</div>

Then I would need a link to the updated project.

---

<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 26, 2022, 5:34am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/37 "2022-01-26T05:34:18Z")

</div>

i cant share the link.

 ![Screenshot 2022-01-26 at 1.33.43 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/f/cf202c47deecbafcc56acda545339a3a3e14aabf.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 26, 2022, 5:36am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/38 "2022-01-26T05:36:57Z")

</div>

Can i pm you instead?

---

<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 26, 2022, 5:39am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/39 "2022-01-26T05:39:21Z")

</div>

Sure, that’s fine. You can also copy the url from the Design page and send that if you like.

---

<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 26, 2022, 5:42am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/40 "2022-01-26T05:42:05Z")

</div>

May i ask how do i copy the url from the design page?

---

<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 26, 2022, 5:59am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/41 "2022-01-26T05:59:40Z")

</div>

When you’re working on the project, just copy and paste the url from your browser.

 ![Screen Shot 2022-01-25 at 9.57.38 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/2/12f48c9b640fed1975d0450e863c4d20d497bb01.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: [January 26, 2022, 7:08am UTC](https://community.thunkable.com/t/sign-in-with-firebase/1690595/42 "2022-01-26T07:08:18Z")

</div>

I added my own Firebase API and URL to the project you sent me. When I sign in with my own verified account, it takes me to the Food Category List screen:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/0185515c4a6b50cee351ed3d99de0c382d8539b7.png)

I don’t see any evidence that you’ve tried debugging with label text and wait blocks, as I suggested. If it’s still not working for you, start there and report back your results with debugging blocks.

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

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