Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
{
"rules": {
".read": true,
"messages": {
".read": true,
"$msg": {
".validate": "newData.child('user_id').val() == auth.id && newData.child('provider').val() == auth.provider",
".write": "!data.exists() && auth != null"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment