flutter_firebase_auth_example
flutter_firebase_auth_example copied to clipboard
User is not signed in automatically after they Sign-up
After Sign-up is successful the user should be signed in and shouldn't have to enter credentials on the sign-in screen again
Following changes in sign_up.dart fix the issue.
import 'package:flutter_firebase_auth_example/util/state_widget.dart';
//now automatically login user too
await StateWidget.of(context).logInUser(email, password);
await Navigator.pushNamed(context, '/');
//await Navigator.pushNamed(context, '/signin');