Skip to content

Firebase Realtime Database Rules

Simon Marquis edited this page Apr 7, 2019 · 1 revision
{
    "rules": {
        "devices": {
            ".read": true,
            ".write": true,
            "$uuid": {
                "name": {
                    ".validate": "newData.isString()"
                },
                "timestamp": {
                    ".validate": "newData.isNumber()"
                },
                "token": {
                    ".validate": "newData.isString()"
                },
                "$other": {
                    ".validate": false
                }
            }
        },
        "$other": {
            ".validate": false
        }
    }
}
Clone this wiki locally