Where is the url being set in Auth0 for the email verification template

Hi Everyone,
I have a really quick question that I seem not to find the answer by my own.
In the email verification template where is the {{url}} is being set?

Hi @ashsubedi.ae,

Thanks for reaching out to the Auth0 Community!

The {{ url }} is set on line 42 in the Verification Email (using Link) default template.

<p><a href="{{ url }}">Confirm my account</a></p>

Please let me know if there are any further questions. I’d be glad to help.

Thank you.

1 Like

Thank you @rueben.tiow Where do we declare or define that URL?
Will it be the default domain of auth0 or the custom domain URL if we enable Use Custom Domain in Emails

Hi @ashsubedi.ae,

Thank you for your response.

Unfortunately, you will not be able to declare or define that URL. The URL is automatically generated when the user triggers a Verification Email. The equivalent can be created using the Management API Create an Email Verification Ticket endpoint.

Regarding your second question, the URL uses your current domain configured in your Auth0 tenant. If you used the default domain, then the URL will look something like this:

https://YOUR_DOMAIN.REGION.auth0.com/u/email-verification?ticket=cpzdqzYREAgGfenKTtoMjpwbs1djXF2S#

Otherwise, if you used a custom domain, then something like this:

https://YOUR_CUSTOM_DOMAIN.com/u/email-verification?ticket=cpzdqzYREAgGfenKTtoMjpwbs1djXF2S#

Hoped this helps! Please let me if you have any other questions.

Thank you.

2 Likes

This is really helpful, thank you @rueben.tiow

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.