# Custom domain to auth0 together

**URL:** <https://community.auth0.com/t/custom-domain-to-auth0-together/97962>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [January 11, 2023, 4:43pm UTC](https://community.auth0.com/t/custom-domain-to-auth0-together/97962 "2023-01-11T16:43:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![calin.ortan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/calin.ortan/32/42537_2.png) [@calin.ortan](https://community.auth0.com/u/calin.ortan)\
**Post date:** [January 11, 2023, 4:43pm UTC](https://community.auth0.com/t/custom-domain-to-auth0-together/97962/1 "2023-01-11T16:43:15Z")

</div>

Hi there,

We have the following use case:

- First we have a legacy app which uses universal login with default domain - [tenant.auth0.com](http://tenant.auth0.com)
- Then there’s a newer app which uses embedded login and is using a custom domain - [login.tenant.com](http://login.tenant.com)

Both have the same client id configured.

I would like to achieve that no matter which app I use to login, authentication status is shared between the two. And that generally works, however, when signing out from the newer app, you can still get a valid session on the legacy app. Basically I can’t logout from the new app.

Do I need to change the legacy app to use the custom domain as well or am I missing some kind of configuration? Logout urls are configured correctly fyi and I am not getting any kind of error.

Thank you

---

<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:** [January 12, 2023, 1:02am UTC](https://community.auth0.com/t/custom-domain-to-auth0-together/97962/3 "2023-01-12T01:02:00Z")

</div>

Hi @calin.ortan,

Welcome to the Auth0 Community!

> [@calin.ortan](#):
>
> Do I need to change the legacy app to use the custom domain as well or am I missing some kind of configuration? Logout urls are configured correctly fyi and I am not getting any kind of error.

Yes, you will have to change the legacy app to use the custom domain for SSO to work across your applications. The sessions are different and not shared between the canonical and custom domains.

In my tests, I found that the sessions are not shared when logging in or logging out between the two domains. But if you are observing this issue only when logging out, it may be worth trying to call the `https://login.tenant.com/v2/logout` endpoint in conjunction with the `https://tenant.auth0.com/v2/logout` endpoint to log the user out from both sessions.

Please let me know how this goes.

Thanks,  
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:** [January 26, 2023, 1:04am UTC](https://community.auth0.com/t/custom-domain-to-auth0-together/97962/5 "2023-01-26T01:04:23Z")

</div>

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