当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - FirebaseUI/Auth with Email-Password

问题描述:

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

On this 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?

网友答案:

Here is the answer I got from the FirebaseUI Github page:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: