This question already has an answer here:
- how can i know what security firebase rule give me a error? 1 answer
Let's say that I have a validation rule like "validate": "condition1 && condition2"
and I want to show the user an error message according to the first condition that is not met.
For example, if condition1
isn't met, the user would receive a custom message saying that "Condition1 is not met".
Basically, I want to map an error code (or message) to each condition and that should be sent to the user (instead of the classic "Permission denied" message from Firebase).