I am having some issues understanding what exactly happens codewise when we write:
const auth = getAuth();
I am using React, the newest version. Do I have to initialize this in every file where I need to use it? Can this auth be passed as a parameter to an async function? Would that be considered a good practice?
I guess I am striving for a deeper understanding of how to use auth. If a user fails to sing in and provides incorrect details does the auth used in all files now mean that there is no current user if there was one previously? Thank you in advance for any help.