problems with Firebase - Recover user session and update data linked to that user

Resolved

I need to create an application with authentication but without registration, that is, I need only certain emails that I previously entered in the Firebase Authentication section to be able to access. They will recover the password independently by requesting the password reset which will arrive on the email.

Having solved this step, which works, I created the "users" collection and populated it with data inserted via .CSV format of the data containing ("Name, Email, Telephone, Address) of each user created by me by default, obviously with the same email identical to that of Firebase Authentication.

The problem is this: when I log in with an email previously registered on Firebase, even if I don't reset the password and use the password I entered on Firebase, even if the registered email is present in the fields of the "user" collection ( set as default for Firebase authentication), creates an additional record for me. Consequently, all the data associated with that user with that email previously entered by me (for example name, telephone, address) does not appear because the system even though I only log in.

I attach a screenshot showing the record already inserted with email. And after my login (no singup) this collection populate a document collection with a new id and folder.

2
5 replies