# Automatic sign in

**URL:** <https://community.thunkable.com/t/automatic-sign-in/3206899>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, beginner, help\
**Created:** [September 16, 2024, 11:35pm UTC](https://community.thunkable.com/t/automatic-sign-in/3206899 "2024-09-16T23:35:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ocorbo](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@ocorbo](https://community.thunkable.com/u/ocorbo)\
**Post date:** [September 16, 2024, 11:35pm UTC](https://community.thunkable.com/t/automatic-sign-in/3206899/1 "2024-09-16T23:35:40Z")

</div>

![Capture d’écran, le 2024-09-16 à 19.32.20](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/7/a75ab445805a0a13ff1c50b30e5fe45041290c69.png)  
So i tried different things found on the forum but couldn’t get it to work as of right now. I dont know if its because im using the thunkable app for previewing my app, should i download it ? but i cant make the auto sign-in work. If i login once and kill all the app on my phone, when i re-open thunkable previewer it doesnt auto-login. What im i doing wrong ?

---

<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:** [September 17, 2024, 6:42am UTC](https://community.thunkable.com/t/automatic-sign-in/3206899/2 "2024-09-17T06:42:24Z")

</div>

This is a mistake:

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

You’re telling Thunkable you want the stored variable named [value of stored variable loginInfo]. Just use the variable block at the top of the Variables drawer that says `set stored variable loginInfo`.

---

<div class="post-metadata">

**Author:** ![ocorbo](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@ocorbo](https://community.thunkable.com/u/ocorbo)\
**Post date:** [September 17, 2024, 8:56am UTC](https://community.thunkable.com/t/automatic-sign-in/3206899/3 "2024-09-17T08:56:36Z")

</div>

could you be more explicit? i dont understand :S what should i do ?

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [September 17, 2024, 8:27pm UTC](https://community.thunkable.com/t/automatic-sign-in/3206899/4 "2024-09-17T20:27:01Z")

</div>

@ocorbo This is the block Tatian is referring to.  
 ![Screenshot 2024-09-17 at 1.25.52 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/d/3d82fc0f1a060c0a4c1ae9b4ad412a87bc22a0db.png)

More info about it here in our Docs:

> **[Variables Blocks | Thunkable Docs](https://docs.thunkable.com/blocks/blocks/variables-overview/variables#set-variable-to)**

---

<div class="post-metadata">

**Author:** ![ocorbo](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@ocorbo](https://community.thunkable.com/u/ocorbo)\
**Post date:** [September 21, 2024, 4:00pm UTC](https://community.thunkable.com/t/automatic-sign-in/3206899/6 "2024-09-21T16:00:39Z")

</div>

![Capture d’écran, le 2024-09-21 à 12.00.02](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/d/dde8b7f0888d5c1bcea5baa84b959188ea32e3a0.png)  
just made the changes and it still doesnt work :S

---

<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:** [September 24, 2024, 5:42pm UTC](https://community.thunkable.com/t/automatic-sign-in/3206899/7 "2024-09-24T17:42:18Z")

</div>

If the sign-in doesn’t work, then you need to debug these blocks:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/4/84ebcfff5e10da3807d06af98838ba8604c3531b.png)

I have a method I use which I explain [here](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471).

I would, for example, start by assigning a label’s text to the “Email” and “Password” properties and see what is displayed when you re-open the app. Are they blank or do they have values? If they have values, are they the same values you typed in before?

If they are what you expect, then what error are you getting? You can assign the green `error` block to a label or text input (if you want to be able to copy it and paste it here).

---

<div class="post-metadata">

**Author:** ![ocorbo](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@ocorbo](https://community.thunkable.com/u/ocorbo)\
**Post date:** [September 29, 2024, 4:16pm UTC](https://community.thunkable.com/t/automatic-sign-in/3206899/8 "2024-09-29T16:16:44Z")

</div>

thank you for the help. What i was missing is the ‘do’ part of the block. I added a ‘if’ condition where ‘if not error’ navigate to main. Now i have to figure out the logout part because when i click on the logOutButton i come back to the loginScreen and re-Sign in 😛

its a never ending login ahahah

---

<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:** [October 4, 2024, 9:52pm UTC](https://community.thunkable.com/t/automatic-sign-in/3206899/9 "2024-10-04T21:52:49Z")

</div>

If you’d like help, post screenshots of those blocks or a link to your project.

---

<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:** [January 2, 2025, 9:53pm UTC](https://community.thunkable.com/t/automatic-sign-in/3206899/10 "2025-01-02T21:53:45Z")

</div>

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