Skip to content

Instantly share code, notes, and snippets.

View buntsem's full-sized avatar

Bunty Kumar buntsem

View GitHub Profile
@buntsem
buntsem / gist:6dad288e884c385adb008b3b99ea3477
Created August 23, 2020 05:35 — forked from katowulf/gist:4741111
Firebase security rules for a simple chat room model
{
"chat": {
// the list of chats may not be listed (no .read permissions here)
// a chat conversation
"$key": {
// if the chat hasn't been created yet, we allow read so there is a way
// to check this and create it; if it already exists, then authenticated
// user (specified by auth.id) must be in $key/users