# Firebase rules results in error (taken from docs)

**URL:** https://community.thunkable.com/t/firebase-rules-results-in-error-taken-from-docs/998127
**Category:** Questions about Thunkable X
**Created:** [November 25, 2020, 11:15am UTC](https://community.thunkable.com/t/firebase-rules-results-in-error-taken-from-docs/998127 "2020-11-25T11:15:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)
#### Post date: [November 25, 2020, 11:15am UTC](https://community.thunkable.com/t/firebase-rules-results-in-error-taken-from-docs/998127/1 "2020-11-25T11:15:08Z")

</div>

Hi everyone,  
I recently received a message from Firebase that my database was going to stop working in the nex few days as i needed to change the rules to make it last longer.  
I read through the docs and I figured out that the code i need is this one:

{  
“rules”: {  
“.read”: “auth.uid != null”  
“.write”: “auth.uid != null”  
}  
}

Instead of the existing:

{  
“rules”: {  
“.read”: “now \< 1606690800000”, // 2020-11-30  
“.write”: “now \< 1606690800000”, // 2020-11-30  
}  
}

Users will be registred first in order to access to the app and they are allowed to write into the database.  
I tried to paste the code that i found on firebase’s docs but it shows me an error: it says it’s missing a “}” or that it’s expecting a ".  
This is the screenshot, someone has faced a similar issue?

 ![aiuto_Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/9/198abcb4b2724d130c725b058fc2358815586a79.png)

Thank you very much for your help!

---

<div class="post-metadata">

### Author: ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)
#### Post date: [November 25, 2020, 11:37am UTC](https://community.thunkable.com/t/firebase-rules-results-in-error-taken-from-docs/998127/2 "2020-11-25T11:37:38Z")

</div>

You missed a comma between the first null and write.

---

<div class="post-metadata">

### Author: ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)
#### Post date: [November 25, 2020, 11:55am UTC](https://community.thunkable.com/t/firebase-rules-results-in-error-taken-from-docs/998127/3 "2020-11-25T11:55:56Z")

</div>

It seems to work, sorry for the dumb question!  
Thank you!

---

<div class="post-metadata">

### Author: ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)
#### Post date: [November 25, 2020, 4:43pm UTC](https://community.thunkable.com/t/firebase-rules-results-in-error-taken-from-docs/998127/4 "2020-11-25T16:43:19Z")

</div>

I had the exact same problem. 😉

---

<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, 12:21pm UTC](https://community.thunkable.com/t/firebase-rules-results-in-error-taken-from-docs/998127/5 "2024-11-08T12:21:29Z")

</div>


