# Custom domain - login.us.auth0.com redirectors to tenant.us.auth0.com and fails

**URL:** <https://community.auth0.com/t/custom-domain-login-us-auth0-com-redirectors-to-tenant-us-auth0-com-and-fails/92286>\
**Category:** Get Help\
**Tags:** spa, bug, custom-domain\
**Created:** [October 12, 2022, 8:33pm UTC](https://community.auth0.com/t/custom-domain-login-us-auth0-com-redirectors-to-tenant-us-auth0-com-and-fails/92286 "2022-10-12T20:33:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![btp-john.strickler](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/btp-john.strickler/32/35128_2.png) [@btp-john.strickler](https://community.auth0.com/u/btp-john.strickler)\
**Post date:** [October 12, 2022, 8:33pm UTC](https://community.auth0.com/t/custom-domain-login-us-auth0-com-redirectors-to-tenant-us-auth0-com-and-fails/92286/1 "2022-10-12T20:33:09Z")

</div>

Hi I’m experiencing an issue with custom domains and authenticating through a Vue SPA.

Here’s what’s happening:

- I changed the domain\_name setting in my Vue app to the new custom domain.
- I logout and reload the SPA so that I start my login flow
- I’m using an organization flow - so I type in a valid organization name first
- I’m presented my login options. (Enter username/password or use Google)
- I choose to log in with Google. I authenticate okay.
- I authenticate okay and it redirects me to [login.us.auth0.com](http://login.us.auth0.com)
- [login.us.auth0.com/login](http://login.us.auth0.com/login) directs me to (my-tenant).us.auth0.com/login!! \<— this part is wrong
- Login fails and I get an error page that states - “You may have pressed the back button, refreshed during login, opened too many login dialogs, or there is some issue with cookies, since we couldn’t find your session”

[login.us.auth0.com](http://login.us.auth0.com) seems like it should be redirecting to my custom domain. if I take the location header in the response and replace my custom domain for the incorrect domain then the login flow finishes okay.

Has anyone seen this before? I’m baffled atm. I chalked it up to a caching issues with Auth0 but it’s been 12 hours since the custom domain change and it is still happening.

Pls help! Ty

---

<div class="post-metadata">

**Author:** ![ale.vesga1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ale.vesga1/32/60921_2.png) [@ale.vesga1](https://community.auth0.com/u/ale.vesga1)\
**Post date:** [December 13, 2024, 12:54am UTC](https://community.auth0.com/t/custom-domain-login-us-auth0-com-redirectors-to-tenant-us-auth0-com-and-fails/92286/2 "2024-12-13T00:54:29Z")

</div>

Our team is answering some of our frequently asked questions.

This is a common issue. Your OAuth/OIDC login flow should begin with a request to the [/authorize](https://auth0.com/docs/api/authentication#social) endpoint. Our [SDKs](https://auth0.com/docs/libraries) typically manage this. Otherwise, this request will need to be formed manually.

See more in our [Custom Domain Configuration - Common Questions](https://community.auth0.com/t/custom-domain-configuration-common-questions/82033) Documentation.

Hope this helps!

---

<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:** [December 27, 2024, 6:34pm UTC](https://community.auth0.com/t/custom-domain-login-us-auth0-com-redirectors-to-tenant-us-auth0-com-and-fails/92286/4 "2024-12-27T18:34:09Z")

</div>

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