Firestory Security Rules: Block Anonymous User

Block anonymouse user from write.

match /item/{item_id} {    allow read: if request.auth.uid != null;    allow write: if request.auth.uid != null && request.auth.token.firebase.sign_in_provider != 'anonymous';}

NOTE: Refer auth. Possible values for request.auth.token.firebase.sign_in_provider includes custom, password, phone, anonymous, google.com, facebook.com, github.com, twitter.com.

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.