I have users, registered with the EMail function of Firebase Authentication. Only authenticated users should write to my Firestore database.
My rule (from the documentation):
allow write: if request.auth != null;
allows access to every request where there is an non-null auth-object. This doesn't seem to be very secure. As you could just make a request with any auth = {something: "hacker"}
object.
So, to avoid this problem. How do I check if the given request.auth.uid
is actually the one from the Firebase Authentication service?