I'm trying to implement email sign-in without password, as per the instructions on this page and when the recipient selects the link in the login message, they see the following message:
I don't get this. The domain pento-2a27b.firebaseapp.com IS whitelisted, since it's already included in the list of authorized domains:

as is the dynamic link:


so what's Firebase complaining about?I tried sending the link both with and without the path component 'signintoapp' and got the same result.
BTW, the relevant parts of my code look like the following:
final ActionCodeSettings actionCodeSettings =
ActionCodeSettings.newBuilder()
// URL you want to redirect back to. The domain (www.example.com) for this
// URL must be whitelisted in the Firebase Console.
.setUrl("https://pento-2a27b.firebaseapp.com")
// This must be true
.setHandleCodeInApp(true)
.setAndroidPackageName(
"com.chiaramail.pento",
true, /* installIfNotAvailable */
"140" /* minimumVersion */)
.build();
and
alertContinue.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
mAuth.sendSignInLinkToEmail(emailAddress.getText().toString(), actionCodeSettings)
.addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
if (task.isSuccessful()) {
Log.d(TAG, "Email sent.");
signinAlert.dismiss();
settings = getSharedPreferences("Five-to-Go settings", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = settings.edit();
editor.putString("EMAIL", emailAddress.getText().toString());
editor.commit();
Toast.makeText(LoginActivity.this, getString(R.string.email_confirmation_sent),
Toast.LENGTH_LONG).show();
}
}
});
}
});
This is related to Dynamic Links whitelisting and not authorized domain or continue URL whitelisting. Learn more about whitelisting dynamic links.
You need to match the pattern of the dynamic link that Firebase Auth constructs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With