Firebase rules and database

Hi

I’m trying to use ionic with firebase. Now I have set the rules to accept only authenticated user to write on the database. I also used the signInWithPhoneNumber to authenticate the user with success.

The problem is, I’m not figuring out how to add the auth code to write properly on the database.

Thanks