# Dynamically change tenant AUTH0\_ISSUER\_BASE\_URL based on query

**URL:** <https://community.auth0.com/t/dynamically-change-tenant-auth0-issuer-base-url-based-on-query/147821>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [September 23, 2024, 4:50pm UTC](https://community.auth0.com/t/dynamically-change-tenant-auth0-issuer-base-url-based-on-query/147821 "2024-09-23T16:50:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan.limonta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ivan.limonta/32/60755_2.png) [@ivan.limonta](https://community.auth0.com/u/ivan.limonta)\
**Post date:** [September 23, 2024, 4:50pm UTC](https://community.auth0.com/t/dynamically-change-tenant-auth0-issuer-base-url-based-on-query/147821/1 "2024-09-23T16:50:57Z")

</div>

Hi all 🙂

We are trying to set the AUTH0\_ISSUER\_BASE\_URL at runtime after an api call because we have different url based on the company.

So the situation is

- we first have a “Login step 0” where we ask the company name
- now we have the organization id (for auth0 universal login and the information about the AUTH0\_ISSUER\_BASE\_URL

What we wanna know if there is the possibility to set the AUTH0\_ISSUER\_BASE\_URL right now so after the the SDK init

---

<div class="post-metadata">

**Author:** ![petre.timotei](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@petre.timotei](https://community.auth0.com/u/petre.timotei)\
**Post date:** [October 2, 2024, 7:24pm UTC](https://community.auth0.com/t/dynamically-change-tenant-auth0-issuer-base-url-based-on-query/147821/3 "2024-10-02T19:24:45Z")

</div>

Hi @ivan.limonta,

Welcome to the Auth0 Community!

Unfortunately, there is **no** possibility to set the `AUTH0_ISSUER_BASE_URL `dynamically.

But, there is a workaround that is not 100% guaranteed; you should be able to get the hosted app’s domain and change it at runtime just before you initialize a new Auth0 instance. This way, you can add a condition to set the `AUTH0_ISSUER_BASE_URL` based on the hosted app’s domain.

I hope this response was helpful.

Thanks,  
Timotei

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 16, 2024, 7:25pm UTC](https://community.auth0.com/t/dynamically-change-tenant-auth0-issuer-base-url-based-on-query/147821/5 "2024-10-16T19:25:02Z")

</div>

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