Skip to content

Instantly share code, notes, and snippets.

@sscotth
Created December 12, 2014 21:20
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sscotth/bc3f474d52d2039394f1 to your computer and use it in GitHub Desktop.
Save sscotth/bc3f474d52d2039394f1 to your computer and use it in GitHub Desktop.
Firebase Security Rules: Grants read/write access to the owner of this user account whose uid must exactly match the key ($uid)
{
"rules": {
"users": {
"$uid": {
".write": "auth !== null && auth.uid === $uid",
".read": "auth !== null && auth.uid === $uid"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment