flutter_firebase_auth_example icon indicating copy to clipboard operation
flutter_firebase_auth_example copied to clipboard

User is not signed in automatically after they Sign-up

Open vikramkapoor opened this issue 5 years ago • 1 comments

After Sign-up is successful the user should be signed in and shouldn't have to enter credentials on the sign-in screen again

vikramkapoor avatar Sep 20 '19 12:09 vikramkapoor

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');

vikramkapoor avatar Sep 20 '19 12:09 vikramkapoor