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

FirebaseUI/Auth with Email-Password

Open psopher opened this issue 10 years ago • 7 comments

I'm hoping to use FirebaseUI/Auth with Facebook, Google, and email/password authentication options.

On the FirebaseUI/Auth landing page, it shows how to add Google and Facebook providers:

FIRGoogleAuthUI *googleAuthUI = [[FIRGoogleAuthUI alloc] initWithClientID:kGoogleClientID];
FIRFacebookAuthUI *facebookAuthUI = [[FIRFacebookAuthUI alloc] initWithAppID:kFacebookAppID];
authUI.providers = @[ googleAuthUI, facebookAuthUI];

How would I add email-password to the auth providers option and have it appear on authViewController?

psopher avatar Jun 10 '16 20:06 psopher

Email-password is enabled as a sign-in option by default, it doesn't require any configuration :)

A "Sign in with email" option should appear on authViewController, unless signInWithEmailHidden is set to YES.

ch40w31 avatar Jun 10 '16 20:06 ch40w31

Awesome!

Just wondering, where can I find the properties of authViewController?

psopher avatar Jun 11 '16 01:06 psopher

The authViewController is essentially a UINavigationController thats wraps a FIRAuthPickerViewController, there's not much you can do with the UINavigationController itself with the current API.

However, if you want to customize the UI of the first screen, you can provide an instance of a custom subclass of FIRAuthPickerViewController by implementing the FIRAuthUI delegate method authPickerViewControllerForAuthUI:. In your custom subclass, you can modify the default UI as you want.

ch40w31 avatar Jun 13 '16 20:06 ch40w31

Closing this issue now. Feel free to let us know if you have more questions :)

ch40w31 avatar Jun 15 '16 16:06 ch40w31

In version 0.5.0 on uidemo there is no e-mail field, and setting signInWithEmailHidden to false doesn't help

xsoti avatar Sep 10 '16 12:09 xsoti

I can confirm, if you don't set a provider you just get a blank view controller with a title of 'welcome'

leeprobert avatar Jun 25 '19 13:06 leeprobert

For everyone having this problem on 5.0:

https://stackoverflow.com/a/54608189

dbeulen avatar Aug 21 '19 20:08 dbeulen