I like that I can prevent users from writing their own timestamp to a "record" in my firebase database using firebase.database.ServerValue.TIMESTAMP. I can validate it server-side with newData.val() === now.
Is there an equivalent property that I can use to add the currently authenticated user's uid to a new record? I want to prevent one user from adding records using another user's uid.
Aucun commentaire:
Enregistrer un commentaire