# How do I check which error is which in Firebase sign-in?

**URL:** <https://community.thunkable.com/t/how-do-i-check-which-error-is-which-in-firebase-sign-in/3414745>\
**Category:** Questions about Thunkable X\
**Created:** [December 14, 2024, 3:55pm UTC](https://community.thunkable.com/t/how-do-i-check-which-error-is-which-in-firebase-sign-in/3414745 "2024-12-14T15:55:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wayqohan63ly](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@wayqohan63ly](https://community.thunkable.com/u/wayqohan63ly)\
**Post date:** [December 14, 2024, 3:55pm UTC](https://community.thunkable.com/t/how-do-i-check-which-error-is-which-in-firebase-sign-in/3414745/1 "2024-12-14T15:55:38Z")

</div>

There is an error block I can use as text, but I want the errors to be more understandable and more customizable. Is it possible to check what error it is through an if block and display a message correspondingly?

 ![screenshot](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/3/d3797d20ea53432fef7c3b16e4a9821a3b5a18ee.png)

---

<div class="post-metadata">

**Author:** ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)\
**Post date:** [December 14, 2024, 5:34pm UTC](https://community.thunkable.com/t/how-do-i-check-which-error-is-which-in-firebase-sign-in/3414745/2 "2024-12-14T17:34:43Z")

</div>

Hello!

What i usually do is to make all the errors on purpose when trying the blocks.  
You can set a If-then block to show: If “error” occurs, then set text to “error”.

Based on what the label says, you can get the words used in the error string and do for example: if “error” contains “wrong password”, set text to “Hello user! It appears your password is incorrect”.

In conclusion, see what the errors says (it’s a text string) and based on the key words you can set another text, completely customized.

Hope it helped!

---

<div class="post-metadata">

**Author:** ![wayqohan63ly](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@wayqohan63ly](https://community.thunkable.com/u/wayqohan63ly)\
**Post date:** [December 14, 2024, 5:41pm UTC](https://community.thunkable.com/t/how-do-i-check-which-error-is-which-in-firebase-sign-in/3414745/3 "2024-12-14T17:41:19Z")

</div>

This does help a lot actually! I’m so stupid I didn’t think of that. Plus the error strings have codes like “auth/email-already-exists” so I think this will work perfectly. Thank you!

---

<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 14, 2025, 5:41pm UTC](https://community.thunkable.com/t/how-do-i-check-which-error-is-which-in-firebase-sign-in/3414745/4 "2025-03-14T17:41:28Z")

</div>

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