Can't return user reference from firebase
Hi! I'm working with firebase in react. It says that onsnapshot is undefied, since I don't return a userRef.
The thing is that I do. Found a person with the exact same problem here: https://stackoverflow.com/questions/67368726/cannot-read-property-onsnapshot-of-undefined and here... https://stackoverflow.com/questions/68499912/firestore-returns-me-null-value-when-i-call-the-get-method https://stackoverflow.com/questions/71367197/firebase-createuserprofiledocument-is-returning-undefined
But since I do return a userRef, none of it is to any help.
I do get an AuthRef which work but can't return anything from the function who returns a userRef.