After saving the user's data in my Firestore database, the password is not hidden (I don't need to encrypt it) just to hide it for example:
email: [email protected] password:*******
CodePudding user response:
the password is not hidden
The password field in your document is a regular field of type String. Naming a field "password" doesn't provide any benefits at all. So there is no way you can hide that.
As also @Fogmeister mentioned in his comment, you just should never store the credentials in the way you did, as storing passwords in cleartext is one of the worst security risks you can inflict on your users.
If you are already using authentication, simply omit the addition of the credentials in the database.