firebase / FirebaseUI-Flutter

Apache License 2.0
99 stars 86 forks source link

[📚] [firebase_ui_auth] Unclear signInWithEmail documentation #28

Open pyciko opened 1 year ago

pyciko commented 1 year ago

It is unclear (at least to me) how to complete email link sign in. The process of adding email link provider is well documented, I managed to set everything up, it sends an email, and then.. what do I need to do in the app then? If I set url property to APPNAME.com/emailSignIn, it redirects to a link like https://APPNAME.com/emailSignIn apiKey=KEY&oobCode=CODE&mode=signIn&lang=en

What do I do with this? I created '/emailSignIn' route, but what do I need to do in this page? Is there any ready to use continuation screen in firebase_ui_auth I need to put there, or do I need to fall back to regular FirebaseAuth.instance and do everything manually?

darshankawar commented 1 year ago

@pyciko I think for verify email, you need to use ActionCodeSettings but that doesn't seem to be documented, which leads me to this similar issue in which you can follow-up and also share your findings for better tracking. https://github.com/firebase/FirebaseUI-Flutter/issues/35

Closing this as a duplicate. If you disagree, write in comments and I'll reopen it.

pyciko commented 1 year ago

Hm.. I think it's a bit different thing. As I understand, ActionCodeSettings object is used to configure a "pre-send" part of process, the part in which a dynamic link gets generated via these settings and an email gets sent. But after that, when you follow the link in email, I don't think the rest of the process has anything to do with ActionCodeSettings.

darshankawar commented 1 year ago

Thanks for the feedback. Reopening.