Firebase Security rules

Hello, I need help with Firebase security rules.
I would like to secure my database and I would like to use content stored in the database for the security measures.

database

I would like to use the numbers in the Picture above to authorize the user to access the app.

What security rule should I use?

Currently am using:

{
“rules”: {
“.read”: true,
“.write”: true
}
}

Please DONT JUST VIEW,help…

you have to explain yourself better so people can help you … but the meaning of the security rules is to verify the users within his ID and to manage who have access to your database and who can edit it ! I think what you are trying to do is to create like your own “sign in” system? wich in this case security rules doesn’t have anything to do, you’ll have to create your own code to accomplish that

you’ll find answers faster in youtube depending on what you want to do