How to make the realtime database more secure

I am using the firebase realtime database and authorisation in my app. Currently my database rules are:
“rules”: {
“.read”: true,
“.write”: true,

This is fine for testing but I want to make it more secure for when I release my app. Any advice on how to do this?

look into search

Look there