Firebase rules results in error (taken from docs)

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?

Thank you very much for your help!

You missed a comma between the first null and write.

1 Like

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

I had the exact same problem. :wink: