How do I access the tenant name in custom login HTML?

Hello,

Is there a way to access the Auth0 tenant name from within the custom login HTML?

I see that the is a config object, though it doesn’t appear to contain a property called either tenant or tenantName. Those were just guesses though, so perhaps it’s something else?

var config = JSON.parse(decodeURIComponent(escape(window.atob('@@config@@'))));

If not through the config object, is there another object that can be accessed which would contain the tenant name?

Thanks,
David

From memory, I believe you should have that in config.auth0Tenant.

2 Likes

Thanks for the reply, you are absolutely correct.

1 Like

Woohooo! Glad you have it working!

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