FIREBASE SAFETY RULES
The safety rules have to be made very well, it is important.
The user can only create a collection with the email and password given in the create account screen. YOU CANNOT READ, NOR EDIT, just create accounts.
The user who starts a normal session will only be able to CRUD on the firestore collection that has its UID and that the user has previously created.
It is an approach so that customer accounts can be created in the database automatically.
The idea is to secretly start with the user that I have given you previously in the Create Account section screen and then allow the client to create his own account (his email-password and his unique UID collection for him) .
Once the account is created and the client logs in, check if the data in the tabs of the My Account, Settings, Payment Methods section have been filled in, the tab with missing data must be displayed and a message that says: IT IS MANDATORY TO FILL IN THESE INFORMATION TO USE THE PROGRAM.