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:
“.read”: “auth.uid != null”
“.write”: “auth.uid != null”
Instead of the existing:
“.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?
Thank you very much for your help!