3

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

Customizing the action URL

3

2 Answers 2

6

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:

  1. Go to Dynamic Links

  2. Add URL Prefix by entering your custom domain YOURDOMAIN.com. No need to actually add a Dynamic Link, this entry alone is sufficient.

  3. Go to Authentication > Template > Edit (Pencil) > Customize Action URL

  4. Enter your custom domain according to this pattern (note the TWO underscores):

https://YOURDOMAIN.com/__/auth/action

  1. Send out an email by registering to your App and click the link in the email. The link will bring you to the default Firebase page handling the action.
0

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

3
  • As written above, I'd like to avoid setting up my own email handler. It is a question of cosmetics, not functionality.
    – Dabbel
    Nov 5, 2020 at 11:43
  • I don't think it's possible to customize the domain without actually creating your own account managment server. it's also described here Nov 6, 2020 at 13:41
  • To my surprise it is possible, I figured it out. See my answer below.
    – Dabbel
    Nov 7, 2020 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.