# Help! User ID storing for only a short time

**URL:** https://community.thunkable.com/t/help-user-id-storing-for-only-a-short-time/2829066
**Category:** Issues / Bugs
**Tags:** beginner, help
**Created:** [February 10, 2024, 3:38pm UTC](https://community.thunkable.com/t/help-user-id-storing-for-only-a-short-time/2829066 "2024-02-10T15:38:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![wemee019gx7p3](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@wemee019gx7p3](https://community.thunkable.com/u/wemee019gx7p3)
#### Post date: [February 10, 2024, 3:38pm UTC](https://community.thunkable.com/t/help-user-id-storing-for-only-a-short-time/2829066/1 "2024-02-10T15:38:16Z")

</div>

Hi,  
Please I have a major issue, I am working on app and I set up the sign up using firebase because. I also used firebase to set up the user details, i.e to save their username and image. However, after logging in for a while, the app variable user ID becomes empty. I confirmed this by setting a label to show the user ID and nothing displays. This really affects the app, because when I try to update a profile details in firebase, all the previous data by other users clear, and instead of showing Users/app variable UserID/ Image or username structure, it clears everything and just shows User/ Image and username.

I have attached some screenshots below, your help will be highly appreciated, thank you.

 ![Screenshot 2024-02-10 162505](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/6/762c8b7cf94e8d53526aaa88c9fe3b57991e001c.png)  
 ![Screenshot 2024-02-10 163150](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/3/a3415f66a507f06592e94110030aebda4e715268.png)

---

<div class="post-metadata">

### Author: ![Goldking](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/goldking/32/165073_2.png) [@Goldking](https://community.thunkable.com/u/Goldking)
#### Post date: [February 12, 2024, 10:59am UTC](https://community.thunkable.com/t/help-user-id-storing-for-only-a-short-time/2829066/2 "2024-02-12T10:59:53Z")

</div>

I’m not sure but I think you have to use the set property instead the create object, or the create object with all the fields and not only the 2 you want to update.  
Show your database tree. Pay attention also about what you are saving inside stored username and image

---

<div class="post-metadata">

### Author: ![wemee019gx7p3](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@wemee019gx7p3](https://community.thunkable.com/u/wemee019gx7p3)
#### Post date: [February 13, 2024, 12:44pm UTC](https://community.thunkable.com/t/help-user-id-storing-for-only-a-short-time/2829066/3 "2024-02-13T12:44:37Z")

</div>

Thank you for your reply.  
I have actually changed it to set property

 ![Screenshot 2024-02-13 134301](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/254834ca2a6a72c80d0d868f291f9bf042cf57f7.png)  
and changed my database tree to userid/image or username, but it’s still the same.  
 ![database structue](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/c/4c7e8e2d0d95fb271c8fc97e507b3f59e9e9eef3.png)

I don’t know if this error could be as a result of logging in to the same account on different devices, cause I am logged in as a user on my laptop and also in the thunkable live app with the same user details, maybe this affects the app variable userid.
