# Firebase auth + nickname!

**URL:** <https://community.thunkable.com/t/firebase-auth-nickname/421498>\
**Category:** Questions about Thunkable X\
**Created:** [January 22, 2020, 2:38pm UTC](https://community.thunkable.com/t/firebase-auth-nickname/421498 "2020-01-22T14:38:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfopietro](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@alfopietro](https://community.thunkable.com/u/alfopietro)\
**Post date:** [January 22, 2020, 2:38pm UTC](https://community.thunkable.com/t/firebase-auth-nickname/421498/1 "2020-01-22T14:38:42Z")

</div>

Hi guys, I successfully followed all tutorials on how to implement a Firebase login/sign-in functionality in my app.

What I can’t find so far is how to identify users by a nickname instead of email.

I mean, during the registration process (also in a second step if not possible during the registration) I want let users choosing a unique nickname too (check if already taken) associated to their email.

Once logged in, users will insert a set of data (like preferred books in a AirTable db) and the tricky part is that I need to query all rows… displaying their public nickname instead of email!

If you need clarification please feel free to contact me! I really need help to go ahead with a project.

---

<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:** [January 22, 2020, 3:12pm UTC](https://community.thunkable.com/t/firebase-auth-nickname/421498/2 "2020-01-22T15:12:43Z")

</div>

Follow! I would love to know how to have user specific names in addition to the use of emails. Using emails may discourage users from publicly posting data in my app. I want to create a study app for students who may not want other students to know their scores. Using usernames allows for anonymity while allowing for public competition and goal setting.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 22, 2020, 4:00pm UTC](https://community.thunkable.com/t/firebase-auth-nickname/421498/3 "2020-01-22T16:00:04Z")

</div>

Could you just have 2 columns for this? Use the email for the look-ups and just display the nickname to the end user?

Thanks.

---

<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:** [January 22, 2020, 4:35pm UTC](https://community.thunkable.com/t/firebase-auth-nickname/421498/4 "2020-01-22T16:35:25Z")

</div>

What if two users have the same username. On a leaderboard this wouldn’t work so well. I want to have anonymous but public leader boards.

ie using a pseudonym or unique username vs their personal email to compete against everybody without knowing who anybody is.

---

<div class="post-metadata">

**Author:** ![Daniel\_Coglitore](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Daniel\_Coglitore](https://community.thunkable.com/u/Daniel_Coglitore)\
**Post date:** [January 22, 2020, 4:43pm UTC](https://community.thunkable.com/t/firebase-auth-nickname/421498/5 "2020-01-22T16:43:36Z")

</div>

is simple! every time a user choose his nickname you save it on a list and later when other user is choosing his nickname you check If the nickname is already taken by other user , you’ll have to get all the nicknames and then check with the block "does list contain “users nickname” ? if not then save it

---

<div class="post-metadata">

**Author:** ![alfopietro](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@alfopietro](https://community.thunkable.com/u/alfopietro)\
**Post date:** [January 22, 2020, 8:22pm UTC](https://community.thunkable.com/t/firebase-auth-nickname/421498/6 "2020-01-22T20:22:13Z")

</div>

Is it possible in Firebase or where ?  
I can’t understand how to register a new user with 2 fields: email and nickname.  
Do you mean a solution like this or some other way ?

---

<div class="post-metadata">

**Author:** ![alfopietro](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@alfopietro](https://community.thunkable.com/u/alfopietro)\
**Post date:** [January 22, 2020, 8:25pm UTC](https://community.thunkable.com/t/firebase-auth-nickname/421498/7 "2020-01-22T20:25:38Z")

</div>

It isn’t just a matter of store a list of nickname and check if already exist one.  
The problem is to match email-nickname during the registration process.  
Or maybe I didn’t understand your answer? if could in case explain it better.

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [January 22, 2020, 11:06pm UTC](https://community.thunkable.com/t/firebase-auth-nickname/421498/8 "2020-01-22T23:06:18Z")

</div>

Hi @alfopietro,

There would be 2 aspects involved in adding a username to a user’s account: handling sign-ups and handling sign-ins.

Let’s assume that you are storing your users’ emails and usernames in a spreadsheet.

When a new user signs up:  
As @Daniel_Coglitore said, you first need to check if their username is taken.  
If it is, ask them to enter a different username.  
If it is not, sign the user up and add the user’s email and username to your spreadsheet.

 ![usernamesignup](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/3/237a6ffbc64f2f61d0619fae63bf40ad73cc59b4.png)

When a returning user signs in:  
Get the index of the first instance of their email address in your spreadsheet.  
Get the value from the ‘username’ column of this spreadsheet.  
Display this value in your app.

 ![usernamesignin](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/b/3bc5053c50081d9db5ef05867d6e995a7e0df927.png)

---

<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, 11:45am UTC](https://community.thunkable.com/t/firebase-auth-nickname/421498/9 "2024-11-08T11:45:57Z")

</div>


