Course lesson
Refactor Firebase Security Rules to Use Functions for Easier Reading
Our Security Rules are getting repetitive with all the logic that we've copy and pasted for the several actions we currently have.
- Duration
- 2 min
- Access
- Included
- Transcript
- Retained from source evidence
Our Security Rules are getting repetitive with all the logic that we've copy and pasted for the several actions we currently have.
In this lesson, we'll go through our security rules and extract the duplicated rules into functions that we can call.
With this approach, we can eliminate the copy/pasting and make our functions a bit more readable.