# Auth0 wildcard login callback

**URL:** <https://community.auth0.com/t/auth0-wildcard-login-callback/47180>\
**Category:** Get Help\
**Tags:** react\
**Created:** [July 30, 2020, 9:26am UTC](https://community.auth0.com/t/auth0-wildcard-login-callback/47180 "2020-07-30T09:26:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nirberko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nirberko/32/15329_2.png) [@nirberko](https://community.auth0.com/u/nirberko)\
**Post date:** [July 30, 2020, 9:26am UTC](https://community.auth0.com/t/auth0-wildcard-login-callback/47180/1 "2020-07-30T09:26:13Z")

</div>

I have this wildcard URL: `*.staging.company.com`

I’m using the `auth0-lock` npm package (using React) and pass a redirect URL when creating an instance of the auth0lock class. (for example, `test.staging.company.com`

when I’m login from my local environment indeed I’m redirecting to the correct URL. but when deploying into my staging environment, when I’m trying to login in `test.staging.company.com` auth0 is redirecting me to `staging.company.com`

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 30, 2020, 1:15pm UTC](https://community.auth0.com/t/auth0-wildcard-login-callback/47180/2 "2020-07-30T13:15:00Z")

</div>

Unfortunately I believe thee problem lies here:

> [@How come "Allowed Web Origins" does not allow wildcards?](http://community.auth0.com/t/how-come-allowed-web-origins-does-not-allow-wildcards/9185/98):
>
> Hi folks - i’m another one in a situation where I have a multitenant application where each customer gets their own URL. Each tenant needs their own subdomain because of how the app is architected internally, and mirroring our tenant list in the Auth0 configuration via the API just isn’t feasible or maintainable (especially since it doesn’t seem the limits of that field are documented anywhere). To help your product managers understand the design here, each tenant in our system receives their …
