-
public final class AuthUI.IdpConfig.EmailBuilder extends AuthUI.IdpConfig.Builder
IdpConfig builder for the email provider.
-
-
Constructor Summary
Constructors Constructor Description AuthUI.IdpConfig.EmailBuilder()
-
Method Summary
Modifier and Type Method Description AuthUI.IdpConfig.EmailBuildersetAllowNewAccounts(boolean allow)Enables or disables creating new accounts in the email sign in flows. AuthUI.IdpConfig.EmailBuildersetRequireName(boolean requireName)Configures the requirement for the user to enter first and last name in the emailsign up flow. AuthUI.IdpConfig.EmailBuilderenableEmailLinkSignIn()Enables email link sign in instead of password based sign in. AuthUI.IdpConfig.EmailBuildersetActionCodeSettings(ActionCodeSettings actionCodeSettings)Sets the ActionCodeSettings object to be used for email link sign in. AuthUI.IdpConfig.EmailBuildersetForceSameDevice()Disables allowing email link sign in to occur across different devices. AuthUI.IdpConfig.EmailBuildersetDefaultEmail(String email)Sets a default sign in email, if the given email has been registered before, thenit will ask the user for password, if the given email it's not registered, thenit starts signing up the default email. AuthUI.IdpConfigbuild()-
-
Method Detail
-
setAllowNewAccounts
@NonNull() AuthUI.IdpConfig.EmailBuilder setAllowNewAccounts(boolean allow)
Enables or disables creating new accounts in the email sign in flows.
Account creation is enabled by default.
-
setRequireName
@NonNull() AuthUI.IdpConfig.EmailBuilder setRequireName(boolean requireName)
Configures the requirement for the user to enter first and last name in the emailsign up flow.
Name is required by default.
-
enableEmailLinkSignIn
@NonNull() AuthUI.IdpConfig.EmailBuilder enableEmailLinkSignIn()
Enables email link sign in instead of password based sign in. Once enabled, you mustpass a valid ActionCodeSettings object using setActionCodeSettings
You must enable Firebase Dynamic Links in the Firebase Console to use email linksign in.
-
setActionCodeSettings
@NonNull() AuthUI.IdpConfig.EmailBuilder setActionCodeSettings(ActionCodeSettings actionCodeSettings)
Sets the ActionCodeSettings object to be used for email link sign in.
canHandleCodeInApp must be set to true, and a validcontinueUrl must be passed via setUrl.This URL must be allowlisted in the Firebase Console.
-
setForceSameDevice
@NonNull() AuthUI.IdpConfig.EmailBuilder setForceSameDevice()
Disables allowing email link sign in to occur across different devices.
This cannot be disabled with anonymous upgrade.
-
setDefaultEmail
@NonNull() AuthUI.IdpConfig.EmailBuilder setDefaultEmail(String email)
Sets a default sign in email, if the given email has been registered before, thenit will ask the user for password, if the given email it's not registered, thenit starts signing up the default email.
-
build
AuthUI.IdpConfig build()
-
-
-
-