You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using EmailLink sign in, in combination with a custom ui crashes the app.
Steps to reproduce:
Enable EmailLink in Firebase console
Enable EmailLink in AuthProvider: AuthUI.IdpConfig.EmailBuilder().enableEmailLinkSignIn().setActionCodeSettings(email).build(),
Set Custom AuthMethodPicker layout: .setAuthMethodPickerLayout(layout)
Start startActivityForResult(intent, )
Observed Results:
What happened?
App crashes with Caused by: java.lang.IllegalStateException: No button found for auth provider: emailLink
Expected Results:
What did you expect to happen?
AuthPickerActivity should be launched with my custom email button
Relevant Code:
private val providers =
listOf( AuthUI.IdpConfig.EmailBuilder().enableEmailLinkSignIn().setRequireName(true).setActionCodeSettings(ActionCodeSettings.newBuilder()
.setAndroidPackageName("package.name", true, null)
.setHandleCodeInApp(true)
.setUrl("https://google.com") // This URL needs to be whitelisted
.build()).build()
)
private val picker = AuthMethodPickerLayout.Builder(_layout).setEmailButtonId(R.id.btn).build()
val intent = AuthUI.createSignInIntentBuilder()
.setAuthMethodPickerLayout(picker)
.setAvailableProviders(providers)
.build()
startActivityForResult(intent, 1234)
The reason this error occurs, is that when you call .enableEmailLinkSignIn the provider Id changes from "password" to "emailLink" -> hence when populateIdpListCustomLayout is called, there is no matching button
The text was updated successfully, but these errors were encountered:
Step 1: Describe your environment
Step 2: Describe the problem:
Using EmailLink sign in, in combination with a custom ui crashes the app.
Steps to reproduce:
Observed Results:
App crashes with
Caused by: java.lang.IllegalStateException: No button found for auth provider: emailLink
Expected Results:
AuthPickerActivity should be launched with my custom email button
Relevant Code:
The reason this error occurs, is that when you call
.enableEmailLinkSignIn
the provider Id changes from "password" to "emailLink" -> hence whenpopulateIdpListCustomLayout
is called, there is no matching buttonThe text was updated successfully, but these errors were encountered: