Skip to content

Instantly share code, notes, and snippets.

@Chiamaka
Created July 5, 2017 14:25
Show Gist options
  • Save Chiamaka/39871d3e7f7bd736bda13d71dff66761 to your computer and use it in GitHub Desktop.
Save Chiamaka/39871d3e7f7bd736bda13d71dff66761 to your computer and use it in GitHub Desktop.
Firebase rules for restricting logged in users to their own bucket. Something like multi tenancy
// Firebase rules for restricting logged in users to their own bucket. SOmething like multi tenancy
{
"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