I have a question about the firebase realtime database rules.
Somebody creates an account and that account creates a path in the realtime database:
The structure is simple (key, userid, other data).
This are my rules:
{
/* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
"rules": {
"waitingForApproval": {
"$uid": {
".write": true,
".read": "auth != null && $uid === auth.uid"
}
},
}
}
But now comes the question. How can I allow to let users write to this object? Everyone who has the code (see BQUyhq)w3D) can write to the object id. They can't write to it when they don't have the code.
Is something possible like that? If so, how can I do that.
