Update Email verification Redirect To in a rule

Hello,

I have an application with multiple markets that use the same tenant, when a user register we send the verification email but the ui doesn’t allow to create a dynamic redirect_to url with this format: {market}.myapp.com. I wonder if there is a way to update this value from a rule where I have the user market value so I can build the url as I need.

many thanks
Francesco

Hi @francesco.venica,

Thanks for reaching out to the Auth0 Community!

I understand that you’d like to have dynamic redirect_to URLs in your verification email template.

First, the Verification Email template dyanmic redirect to urls only allow 3 variables, namely the application.name, application.clientID and application.callback_domain. And as you have observed, you won’t be able to use the market value.

As an alternative, you could build a Custom Redirect using the Management API v2 Create Email Verification Ticket endpoint. Doing so will allow you to specify your desired redirect_to URL.

Hoped this helps!

Please let me know if there’s anything else I can do to help.

Thank you.

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