I want to save my application's stats to Firebase using their Restful API.
And because this can't be public (both writing and reading the stats), I have to use Firebase authentication.
The simplest way I thought is to have a STATS_WRITE_TOKEN
and a STATS_READ_TOKEN
, and use them in the "Security Rules" tab in Firebase.
So, what should my Security Rules look like?
-- The tokens can be generated using the "Secrets" tab in Firebase.