Flutter: Firebase Authentication Create User Without Automatically Logging In
问题 I have a user management feature in my flutter app that uses firebase authentication. I can register new user accounts using firebase_auth 's createUserWithEmailAndPassword() function. return await FirebaseAuth.instance. createUserWithEmailAndPassword(email: email, password: password); The problem is when the registration is successful it automatically authenticates my FirebaseAuth instance as the new user even though I am already logged in. I came across this answer: Firebase kicks out