# Dynamically change tenant AUTH0\_ISSUER\_BASE\_URL from handleLogin

**URL:** <https://community.auth0.com/t/dynamically-change-tenant-auth0-issuer-base-url-from-handlelogin/135168>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [May 29, 2024, 7:05am UTC](https://community.auth0.com/t/dynamically-change-tenant-auth0-issuer-base-url-from-handlelogin/135168 "2024-05-29T07:05:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gab.baleta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gab.baleta/32/54195_2.png) [@gab.baleta](https://community.auth0.com/u/gab.baleta)\
**Post date:** [May 29, 2024, 7:05am UTC](https://community.auth0.com/t/dynamically-change-tenant-auth0-issuer-base-url-from-handlelogin/135168/1 "2024-05-29T07:05:14Z")

</div>

Hi good day we are trying to look into whether there are ways to dynamically change the AUTH0\_ISSUER\_BASE\_URL at runtime  
We want to change it based on the domain of the hosted app

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [June 3, 2024, 6:49pm UTC](https://community.auth0.com/t/dynamically-change-tenant-auth0-issuer-base-url-from-handlelogin/135168/3 "2024-06-03T18:49:40Z")

</div>

Hi @gab.baleta,

Welcome to the Auth0 Community!

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.

Cheers,  
Rueben

---

<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:** [June 29, 2024, 12:33am UTC](https://community.auth0.com/t/dynamically-change-tenant-auth0-issuer-base-url-from-handlelogin/135168/4 "2024-06-29T00:33:36Z")

</div>

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