I am building an app with django and firebase. I have built my custom authentication system. And I need secure rules so that only people whom I have authenticated can read/write in the database or storage.
{
"rules": {
".read": true,
".write": true
}
}
These are my current rules, so is their a way to pass a token when I request(read or write on databse) which is first checked. Something like ->
{
"rules": {
".write": "isAuthorized == true",
".read": "isAuthorized == true"
}
}
And when making request to database like- db.child('test').get() I pass this isAuthorized bool
Any help is appreciated, or you can suggest changes.