I need to change the verification url domain in the password email template. I have multiple custom domains in the same tenant. I think it picks up the oldest custom domain. Have not been able to find any solution. Could a workaround be to remove the oldest custom domain and then add it back? Hopefully the email template would pick up the next custom domain.
Assuming you are requesting a password reset email during a login flow, the password reset email will use the domain that was used in that flow. For example, if you initiated the login flow using your-custom-domain.com domain, any links generated during that flow (including the password reset email) will also have the your-custom-domain.com domain.
You will also need to enable custom domains in emails, so to do this, you can go to Branding → Custom Domains → turn on the “Enable custom domains for email and phone notifications” toggle.
If you are using the “Try” button from the Auth0 dashboard, this will always pick the first domain available, which I believe might be the case here.
Please let me know if this helped or if you have further questions. Thank you!
Best regards,
Remus