Skip to content

Instantly share code, notes, and snippets.

@tailorvj
Created February 8, 2019 12:56
Show Gist options
  • Save tailorvj/3137b0a9cf72f71148fe4b11f5c74b98 to your computer and use it in GitHub Desktop.
Save tailorvj/3137b0a9cf72f71148fe4b11f5c74b98 to your computer and use it in GitHub Desktop.
Firebase database rules set that allows logged in users only to read and write their own user into the users collection
{
"rules": {
"users" {
"$uid": {
".read": "$uid === auth.uid",
".write": "$uid === auth.uid"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment