Background
Firebase Authentication sends out emails for registration, password change etc. These emails contain links with the internal Firebase name of my project.
Problem
I want to replace that internal name with my custom domain, which seems to be possible by changing the Action URL and using a Dynamic Link.
I do not want to handle the email actions with my own code, but just replace the Firebase domain with a custom domain. It is about sending emails that are containing links with a custom domain and thus look nice.
Existing Answer
An answer exists, but I do not understand how this exactly works. And I am not able to comment as my reputation is too low.
https://stackoverflow.com/questions/46972194/how-to-customize-firebase-action-url-for-password-reset-and-email-verification#:~:text=You%20just%20need%20to%20create,Dynamic%20Link%20and%20hit%20done.
Illustration

It is possible change the Firebase action URL in email templates to one's custom domain without implementing email action handler code but relying on the already existing firebase functionality.
In the Firebase Console:
Go to Dynamic Links
Add URL Prefix by entering your custom domain YOURDOMAIN.com. No need to actually add a Dynamic Link, this entry alone is sufficient.
Go to Authentication > Template > Edit (Pencil) > Customize Action URL
Enter your custom domain according to this pattern (note the TWO underscores):
https://YOURDOMAIN.com/__/auth/action
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