Auth0 CLI not recognizing custom domain

I am trying to create a custom template so that I can add additional fields to the universal login dialogue, but when I run auth0 universal-login templates update, I get the following error:

▸ Failed to fetch the Universal Login template data: this feature requires at least one custom domain to be set and verified for the tenant, use ‘auth0 domains create’ to create one and ‘auth0 domains verify’ to have it verified.

I definitely have the custom domain in question active, as it is now where my users are brought during the login experience. However, it doesn’t seem to be working on the CLI side. I’m not totally sure what I’m missing here.

Hi @youssef1

Welcome to the Auth0 Community!

Could you please provide me the tenant name on which you have this issue so that I can take a look?

Kind Regards,
Nik

Hi Nik,

Thank you! I actually just figured it out as you responded. Turns out the issue was that my audience was still set to the custom domain, when it needed to be set to the auth0 provided domain. Still working out the process of creating custom templates, but will probably come back for more help if I get properly stuck again.

Best,
Youssef

Alright! Thanks for letting us know!

You can continue this thread if you have any other questions, however, if you have an inquiry regarding a different problem, I would recommend to open a new post!

Kind Regards,
Nik