2 ms·
I've seen many many firebase projects with rules disabling access only if "auth != null" instead of implementing some kind of even rudimentary access controls.
by throwaway0665 3y ago
I've seen many many firebase projects with rules disabling access only if "auth != null" instead of implementing some kind of even rudimentary access controls. It's a very dangerous habit that seems to come straight from the firebase docs[1]:
> When the user requesting access isn't signed in, the auth variable is null. You can leverage this in your rules if, for example, you want to limit read access to authenticated users — auth != null. However, we generally recommend limiting write access further.
[1]: https://firebase.google.com/docs/rules/rules-and-auth https://firebase.google.com/docs/rules/rules-and-auth
- deleted 3y ago[deleted]