Skip to content

Instantly share code, notes, and snippets.

@alexastrum
Last active July 15, 2020 16:33
Show Gist options
  • Save alexastrum/1637338bd6d032079540ea334ddd5293 to your computer and use it in GitHub Desktop.
Save alexastrum/1637338bd6d032079540ea334ddd5293 to your computer and use it in GitHub Desktop.
{
"rules": {
"$deviceId": {
".write": "auth.uid != null && auth.token.deviceId === $deviceId"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment