What is the best practice to detect when authorization fails due to firebase security rules. For example if the security rules in the firebase database do not allow the current logged in user below to access "/path/to/data" how can it be detected?
<firebase-document
id="document"
app-name="notes"
path="/path/to/data"
data="{{data}}">
</firebase-document>