firebase / FirebaseUI-Flutter

Apache License 2.0
93 stars 81 forks source link

Method to back out from EmailLinkSignInScreen in iOS #81

Closed lesnitsky closed 10 months ago

lesnitsky commented 10 months ago

Discussed in https://github.com/firebase/FirebaseUI-Flutter/discussions/80

Originally posted by **rstieger** July 25, 2023 Given an app using SignInScreen from firebase_ui_auth, with EmailLinkAuthProvider as one of the providers: A user might accidentally click on the "Sign in with magic link" button. Or they might mistype their email address. In either case, on iOS there is no way to go back to the original SignInScreen, short of terminating and restarting the app. (Android always has a back button available.) It would be better if EmailLinkSignInScreen/EmailLinkSignInView had the same "Go back" option that other screens have (for example, SMSCodeInputScreen). This could be a boolean parameter to the EmailLinkSignInScreen constructor in case some developers prefer the flow as-is.