FirebaseUI-iOS icon indicating copy to clipboard operation
FirebaseUI-iOS copied to clipboard

Email-Password on AuthViewController Doesn't Query to Set a Password on First Use

Open psopher opened this issue 10 years ago • 2 comments

I'm using authViewController for FirebaseUI/Auth. Here is what it looks like when I select the email-password option:

simulator screen shot jun 11 2016 4 01 00 pm

simulator screen shot jun 11 2016 4 01 06 pm

simulator screen shot jun 11 2016 4 01 17 pm

simulator screen shot jun 11 2016 4 02 06 pm

As you can see, there's no query to set a password, so it's impossible to actually authenticate with this method. Am I doing something wrong? How do I fix this?

Also, the flow is kind of strange. Why does it ask for your email on one page and then your email and password on the next?

Addendum Email-password IS enabled in my Firebase Console. The only code I use is to call authViewController because the email-password option appears automatically.

self.authViewController = [authUI authViewController];

psopher avatar Jun 11 '16 20:06 psopher

I just figured it out.. I was giving it an email for a previously authenticated FIRUser

psopher avatar Jun 12 '16 22:06 psopher

The flow asks the user for the identifier first to determine what the next step should be. It not only helps differentiate sign-in and sign-up cases, it also avoids creating a duplicate account for users who have signed up using an identity provider.

ch40w31 avatar Jun 13 '16 20:06 ch40w31