How to write a function that accepts user email and password from client and registers him? (Firestore functions)
问题 I have this case where I want to register users with email and password, so I want to write a function which accepts those two parameters and creates a new user and returns a message OK or something. This is my code in React-Native: firebase.functions().httpsCallable('registerNewPatient')({ email: 'testestbmf@hotmail.com', password: 'bbbbbb1' }).then((onfulfilled, onrejected) => { if (onfulfilled) { console.log("OK callback function:", onfulfilled); } else { console.log("Error callback