In my firestore database, i created phonenumber and passwords so, i can check if the phonenumber and password when the user tries to login, then i can get the userid which is the name of the document, store the userid in a provider and pass it to the required pages. what is want to know is, is there a better way to do this, i would like to somehow have the access to the built in firebase auth functions.
Here is the image of what my firestore database looks like:
