Reputation: 2825
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.
Illustration
Upvotes: 4
Views: 2690
Reputation: 2825
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
Upvotes: 7
Reputation: 2477
The procedure is very well explained in this documentaion. you have to:
1- create the email action handler page
2- link that page to your email template in the customize action url
Upvotes: 0