Hi
In my app, I'm using my own Firebase Realtime database with email/password authentication.
With the following rules evrything works fine:
{
"rules": {
".read": true,
".write": true,
}
}
For security issue, I would like to change these rules by:
{
"rules": {
".read": "auth != null",
".write": "auth != null",
}
}
In the 2nd configuration of rules, when I use the FirebaseDB.GetValue function, I've a Firebase error "Permission denied".
In the app, the first step is to authenticate the user by using a WebViewer and a .js script (with signInWithEmailAndPassword function).
How the authenticated user in the .js can be managed in the app, (ie. how can the FirebaseDB.GetValue can be used and keep this autenticated status) ?
Regards