# Save username and password

**URL:** <https://community.thunkable.com/t/save-username-and-password/2366020>\
**Category:** Questions about Thunkable X\
**Tags:** question\
**Created:** [April 10, 2023, 3:56pm UTC](https://community.thunkable.com/t/save-username-and-password/2366020 "2023-04-10T15:56:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [April 10, 2023, 3:56pm UTC](https://community.thunkable.com/t/save-username-and-password/2366020/1 "2023-04-10T15:56:50Z")

</div>

Hi All,

How to save username and password from firebase authentication? so users no need to login every single time on the app.  
or second option how to integrate using finger print.

here is my block on for login page.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aa3b5ed7549c9d72593f5f19308d13d4a406a9fd.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:** [April 10, 2023, 6:33pm UTC](https://community.thunkable.com/t/save-username-and-password/2366020/2 "2023-04-10T18:33:35Z")

</div>

Hello @ozel1978  
To create an auto sign-in feature you can save the user id into a stored variable and when the user opens the app check if this variable has value in order to navigate them to the sign-in or Home screen

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/0/9041ce871a0e78433be24eac345361acdc0e2b80.png)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/7/17f73db824d64fc036744b17c8d346209f5dcf35.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:** [April 10, 2023, 7:50pm UTC](https://community.thunkable.com/t/save-username-and-password/2366020/3 "2023-04-10T19:50:39Z")

</div>

You can use _stored_ variables to save the user’s email and password in order to sign them in automatically each time they use your app. Just make sure when using stored variables that you check to see if they are equal to null when the screen opens and if so, set their values to an empty string (“”).

**Edit:** see above… for some reason @ioannis’ comment hadn’t loaded when I typed mine but he’s exactly right.

---

<div class="post-metadata">

**Author:** ![ozel1978](https://avatars.discourse-cdn.com/v4/letter/o/3ec8ea/32.png) [@ozel1978](https://community.thunkable.com/u/ozel1978)\
**Post date:** [April 11, 2023, 3:12pm UTC](https://community.thunkable.com/t/save-username-and-password/2366020/4 "2023-04-11T15:12:48Z")

</div>

thank you for your block.

i plan to have logout and reset password button.

what happen then, since your block has save username and password when page is start.

---

<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:** [July 10, 2023, 3:13pm UTC](https://community.thunkable.com/t/save-username-and-password/2366020/5 "2023-07-10T15:13:46Z")

</div>

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