# Create anonymous sign in screen with Firebase and Thunkable Blocks?

**URL:** <https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, design, blocks, auth\
**Created:** [July 14, 2021, 4:58pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413 "2021-07-14T16:58:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![laura.quraishk5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/laura.quraishk5/32/110804_2.png) [@laura.quraishk5](https://community.thunkable.com/u/laura.quraishk5)\
**Post date:** [July 14, 2021, 4:58pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/1 "2021-07-14T16:58:01Z")

</div>

Hi Thunkable Community!

I am using Thunkable to create a stress-reducing APP for a research project. I remixed the survey tool allowing users to enter their daily stress level from 0 to 10 and type in their daily stress triggers.

I cannot add any personal identifiable information to my sign-in screen to protect users’ privacy. My University won’t approve my project if users’ emails are used (too much liability), but my users must be able to create their own separate accounts and I must be able to view their daily stress tracking.

1. How do I create a sign-in screen with username and password instead of email and password using Thunkable and Firebase?

2. Which Thunkable blocks should I use?

I remixed the sign-in screen project on Thunkable, but the only blocks I found were for storing email and password.

Thank you!

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [July 14, 2021, 5:23pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/2 "2021-07-14T17:23:14Z")

</div>

Hey Laura! Welcome to Thunkable! IRBs are trouble aren’t they?

Interesting question!

I think this can be done, but you might have to get a little bit clever. Firebase can definitely let users login without a valid email address, but Thunkable’s Firebase sign-in blocks only do email authentication. If you don’t want to create your users in some other way (through the API or bulk upload or something else - this would be more complicated), then you might take each user’s login information and use blocks (look at the red text join block) to add a BOGUS @email.domain at the end of the input user name before calling the sign-in or sign-up blocks. Make very sure you choose something bogus so that you don’t generate spam.

You’re also going to have to modify the logic where Thunkable checks if the email is verified, because that bogus email is never going to get verified.

That should be a pretty straight forward from the remixed sign-in screen project, but please post if you’re stuck (preferably with pictures of blocks or a link to the project) and one of us will try to help!

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [July 14, 2021, 8:00pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/3 "2021-07-14T20:00:11Z")

</div>

You could create fake usernames on registration.

Records associated with the fake names only.

Log in using fake name and user created password.

No email needed but in this way data is less secure in reality.

Can you not save data using their Firebase ID. Then only email is used during registration. No other data is associated with the email then.

Lots of universities use online systems for research. I would speak to others and see the approaches they took.

My local community mental health (Pair my Medicaid) and my university (florida tech) approved my research by ensuring I only used email during signup/signin and at no other time. All data is saved using a unique no identifiable number.

---

<div class="post-metadata">

**Author:** ![laura.quraishk5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/laura.quraishk5/32/110804_2.png) [@laura.quraishk5](https://community.thunkable.com/u/laura.quraishk5)\
**Post date:** [July 15, 2021, 4:03pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/4 "2021-07-15T16:03:47Z")

</div>

> [@catsarisky](#):
>
> d), then you might take each user’s login information and use blocks (look at the red text join block) to add a BOGUS @email.domain at the end of the input user name before calling the sign-in or sign-up block

Hi Cathy! Yes, my pesky IRB is really making my brain stretch.

Thank you for the reply. I am so thankful for Thunkable Community.

The BOGUS email domain sounds like a great strategy. I will dive in and post my blocks if I get stuck.

Thanks again 😄

---

<div class="post-metadata">

**Author:** ![laura.quraishk5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/laura.quraishk5/32/110804_2.png) [@laura.quraishk5](https://community.thunkable.com/u/laura.quraishk5)\
**Post date:** [July 15, 2021, 4:12pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/5 "2021-07-15T16:12:21Z")

</div>

Hi Jared, thanks for the help.

In researching for this problem yesterday, I found exactly what you said, that the data is less secure without using email. I am going to try to create a bogus email domain at the end of each username.

That is awesome your university approved your project using users’ emails. You brought up a great point, it never hurts to ask, I could save myself a lot of time and energy.

Was your project also through Thunkable? If so, did you publish your APP through Apple?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [July 16, 2021, 1:10am UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/6 "2021-07-16T01:10:53Z")

</div>

> [@Support us on product hunt! ScorecardX a bubble idea wrapped in thunkable](https://community.thunkable.com/t/support-us-on-product-hunt-scorecardx-a-bubble-idea-wrapped-in-thunkable/1138057):
>
> So this is borderline to be sharing here IMHO. I made the main app with bubble. I am building out a wrapper plugin for anyone interested [https://www.scorecardx.org](https://www.scorecardx.org) come check me out here! [[ScorecardX - Making Performance Reviews Easier | Product Hunt]](https://www.producthunt.com/posts/scorecardx?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-scorecardx)

---

<div class="post-metadata">

**Author:** ![laura.quraishk5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/laura.quraishk5/32/110804_2.png) [@laura.quraishk5](https://community.thunkable.com/u/laura.quraishk5)\
**Post date:** [July 16, 2021, 6:18pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/7 "2021-07-16T18:18:32Z")

</div>

Hi Cathy, Good news! I followed your instructions and it worked! As a test, I was able to create anonymous accounts with 6-digit usernames combined with my bogus domain called @empact.com

It worked perfectly for signing up & for creating unique, anonymous users in Firebase.

For example, this is the username format users have to use when _ **signing up** _  
username: [454545@empact.com](mailto:454545@empact.com)

The only strange thing is that when users _ **sign in** _ all they are able to enter is their 6-digit username (for example 454545). If they try to enter [454545@empact.com](mailto:454545@empact.com), an error says “email address badly formatted.”

I am trying to figure out a good “forcing function” to prevent users from getting confused.

Is there a hidden way to attach the @empact.com to the user’s 6-digit username so an account is generated in Firebase, but on the user’s end only display the 6-digit username while signing up?

I attached a picture of my blocks and here is a link to my project so you can see how the login works.

Thank you!

 ![EMPACT sign in blocks](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/6/0641e6dc9227e082b64c4041d1988eedd8d02002.png)

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [July 16, 2021, 6:27pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/8 "2021-07-16T18:27:11Z")

</div>

Have a look at where you’re calling signup and signin. Looks to me like the one time you are joining the @fakedomain and the other time you aren’t? That’s probably the source of the problem. I’d guess you want users to just enter their username part, and you should handle it like the right (sign in) way , not the left (sign up) one. Fix the left one to look like the right one, and your users won’t need to type the @fakedomain.

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

Important aside. @empact.com is a real domain. If your firebase is sending email confirmations (which I think it does by default), you’re sending login information to whoever receives email for that domain, which is a security problem, if that’s not you. (Some domain administrators route all usernames to one email bucket.) @example.com is likely a better choice.

---

<div class="post-metadata">

**Author:** ![laura.quraishk5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/laura.quraishk5/32/110804_2.png) [@laura.quraishk5](https://community.thunkable.com/u/laura.quraishk5)\
**Post date:** [July 16, 2021, 7:01pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/9 "2021-07-16T19:01:24Z")

</div>

It worked! I feel like I just won a gold medal at the Olympics 🥇. Thank you Cathy 😆 you are a lifesaver!

---

<div class="post-metadata">

**Author:** ![laura.quraishk5](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/laura.quraishk5/32/110804_2.png) [@laura.quraishk5](https://community.thunkable.com/u/laura.quraishk5)\
**Post date:** [July 16, 2021, 7:02pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/10 "2021-07-16T19:02:40Z")

</div>

Also thank you for the domain advice. I changed my bogus domain to [example.com](http://example.com)

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [July 16, 2021, 7:08pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/11 "2021-07-16T19:08:58Z")

</div>

> [@laura.quraishk5](#):
>
> It worked! I feel like I just won a gold medal at the Olympics 🥇.

That’s awesome! So glad you got your login page working! Now to build some pages that actually take data, huh? 🙂 You know where the forum is - come back for more help any time. 🙂

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:19pm UTC](https://community.thunkable.com/t/create-anonymous-sign-in-screen-with-firebase-and-thunkable-blocks/1396413/12 "2024-11-08T13:19:44Z")

</div>


