🐛 Email signing-up (register) not responsive (a case uncovered by current documentation) #351
Open
1 task done
Labels
auth
Keep Open
Keep PR or issue open
Needs Attention
OP created or responded to issue and it needs attention.
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI Auth
What platform(s) does this bug affect?
Android, iOS
List of dependencies used.
flutter pub deps -s list
dev dependencies:
transitive dependencies:
Steps to reproduce
Use the recommended code snippet for the auth signing in page. (I use
GoRoute
so the code is a bit different, but everything aroundfirebase_ui_auth
is the same)Then in the Sign In page, click "Register", fill in valid credential and click the "Register" button.
Expected Behavior
At least something will happen to indicate that the registration is successful. Either jumping to the email verification page, or the sign in page, or some hint appears.
If nothing happens, the documentation should highlight this intended design, and add post-registration handling in the example code snippet.
Actual Behavior
firebase_ui_auth
documentation does not clarify this intended(?) behavior, or tell developers how to customize the post-registration behavior.Additional Information
I post this issue as a "bug" because the documentation says nothing about this phenomenon. So I doubt whether it is really intended that nothing happens after users click the Register button.
Some suggested solutions are:
SigningUp
is issued before trying to write the user credential in the database, andUserCreated
is issued after successfully written the user credential in the database. So below is my solution, and I suggest the example code snippet in the library documentation also change to similar (except for the use ofGoRoute
)SignInScreen
. Moreover, if app developers decided to not verify emails, there can be another option to automatically sign in after a successful registration.RegisterScreen
yet, it sounds like something similar toSignInScreen
. I don't know why are there two ways to provide email registration UI, and why we can't customize the "authSwith" (Register/Sign In text button) on theSignInScreen
to use dedicated pages instead.The text was updated successfully, but these errors were encountered: