I want firebase to send a link to the user to authenticate email. I don't know which link to provide in the function below, while I do not have a website to insert its URL..
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://www.example.com/finishSignUp?cartId=1234")
// This must be true
.setHandleCodeInApp(true)
.setIOSBundleId("com.example.ios")
.setAndroidPackageName(
"com.example.android",
true, /* installIfNotAvailable */
12 /* minimumVersion */)
.build();
It also says in the above code comment that URL must be whitelisted, how can I create the email and add it to the firebase whitelisted links?
I appreciate your kind help.
Thanks in advance.
To resolve that check the official documentations
https://firebase.google.com/docs/auth/android/email-link-auth
Good luck,
Athentication -> sign-in method -> Domains treated
.setUrl("https://Domains treated/finishSignUp")
Settings -> General -> Package name
.setAndroidPackageName(
"Package name",
true,
"null")
Here you have st more completed: https://droidmentor.com/password-less-email-firebase-auth/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.