# Login with firebase and local data sources with local table

**URL:** https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861
**Category:** Questions about Thunkable X
**Created:** [April 1, 2022, 11:04pm UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861 "2022-04-01T23:04:07Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![jp019178q4xzw](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jp019178q4xzw](https://community.thunkable.com/u/jp019178q4xzw)
#### Post date: [April 1, 2022, 11:04pm UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/1 "2022-04-01T23:04:07Z")

</div>

Hello, good evening, I have a problem and I don’t know where I am wrong, I am making an application in which I have a login with firebase, what happens is that the content of the application is with a data source the data source is a local table  
, the problem is that when I log in with a user and save data, and then you log in with another user I see the data of the previous user how can I make it so that each user when they log in saves data and only that specific user can see it.

thanks greetings.

---

<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 1, 2022, 11:12pm UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/2 "2022-04-01T23:12:12Z")

</div>

Save the data under each user’s user ID.

If you Google _firebase user id Thunkable_, you’ll see videos that explain this.

This looks like a pretty good one although it’s part two of two:

[![](https://img.youtube.com/vi/LEqHkz2auaQ/maxresdefault.jpg "Thunkable Micro-Tutorial - Firebase Realtime Database Part II: Create & Read Data") ](https://www.youtube.com/watch?v=LEqHkz2auaQ)

---

<div class="post-metadata">

### Author: ![jp019178q4xzw](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jp019178q4xzw](https://community.thunkable.com/u/jp019178q4xzw)
#### Post date: [April 3, 2022, 11:57pm UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/3 "2022-04-03T23:57:02Z")

</div>

thanks for the video but I really don’t understand it well I want each user to save their own data in the local data table when they log in  
if the other user sees the data of the previous one

If someone could help a clearer example I would appreciate it.

greetings thanks

---

<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 4, 2022, 1:31am UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/5 "2022-04-04T01:31:08Z")

</div>

Are you logging in the user with Firebase but storing data in a local data source? Local data sources can only be accessed by the device that stored that data. So I’m guessing that you’re logging in as two different users on the same device. That would allow you to see the local data with both accounts because they are sharing a device. Is that realistic? Do you expect two or more users to share a device? If not, then you can ignore this problem. If so, then you should store the data in Firebase rather than in a local data source.

---

<div class="post-metadata">

### Author: ![jp019178q4xzw](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jp019178q4xzw](https://community.thunkable.com/u/jp019178q4xzw)
#### Post date: [April 4, 2022, 12:39pm UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/6 "2022-04-04T12:39:22Z")

</div>

ok thank you very much for the contribution I had not realized that I have my data stored in a local source.

And how is data saved in firebase under each registered user?

and how the data that users save in firebase is hidden, so they are encrypted

---

<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 4, 2022, 1:48pm UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/7 "2022-04-04T13:48:58Z")

</div>

You’ve mentioned that the user data is stored in “a local data table.” What do you mean by that?

Which blocks are you using for that?

To learn about Firebase, watch the videos I mentioned. If you can’t get it to work, share screenshots of your blocks or a link to your project so we can see what you’ve tried.

---

<div class="post-metadata">

### Author: ![jp019178q4xzw](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jp019178q4xzw](https://community.thunkable.com/u/jp019178q4xzw)
#### Post date: [April 4, 2022, 11:35pm UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/8 "2022-04-04T23:35:37Z")

</div>

I am trying to save data in firebase but they are overwritten, how to save data without being overwritten

---

<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 5, 2022, 1:39am UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/9 "2022-04-05T01:39:54Z")

</div>

This:

> [@tatiang](#):
>
> If you can’t get it to work, share screenshots of your blocks or a link to your project so we can see what you’ve tried.

---

<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: [April 6, 2022, 10:12pm UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/10 "2022-04-06T22:12:17Z")

</div>

Hey there @jp019178q4xzw 👋

Did you end up figuring this out? I am a big fan of Firebase and happy to help others learn how to harness its power! 🦾

---

<div class="post-metadata">

### Author: ![jp019178q4xzw](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jp019178q4xzw](https://community.thunkable.com/u/jp019178q4xzw)
#### Post date: [April 7, 2022, 11:22pm UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/11 "2022-04-07T23:22:33Z")

</div>

Hello, how are you, thank you for wanting to help me, how could I save data in firebase? and that data can be encrypted or save data encrypted?

---

<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 6, 2022, 11:22pm UTC](https://community.thunkable.com/t/login-with-firebase-and-local-data-sources-with-local-table/1813861/12 "2022-07-06T23:22:48Z")

</div>

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