# Two apps on the same host (localhost)

**URL:** <https://community.auth0.com/t/two-apps-on-the-same-host-localhost/42504>\
**Category:** Get Help\
**Tags:** auth0-spa-js, vuejs\
**Created:** [May 6, 2020, 6:16pm UTC](https://community.auth0.com/t/two-apps-on-the-same-host-localhost/42504 "2020-05-06T18:16:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vui/32/21110_2.png) [@vui](https://community.auth0.com/u/vui)\
**Post date:** [May 6, 2020, 6:16pm UTC](https://community.auth0.com/t/two-apps-on-the-same-host-localhost/42504/1 "2020-05-06T18:16:12Z")

</div>

Hi,

We are using the auth0-spa-js package with vue for two apps. If we run both apps at the same time on localhost we are only able to log in to one at the same time. On login you will be logged out on the other and vise versa.

Is there any way to overcome this issue?

Thx,  
Valentin

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 7, 2020, 6:10pm UTC](https://community.auth0.com/t/two-apps-on-the-same-host-localhost/42504/3 "2020-05-07T18:10:09Z")

</div>

Hi @vui,

Welcome to the Community!

You should be ‘logged in’ across apps via SSO. Can you tell us more about how you have this set up?

Let me know,  
Dan

---

<div class="post-metadata">

**Author:** ![vui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vui/32/21110_2.png) [@vui](https://community.auth0.com/u/vui)\
**Post date:** [May 8, 2020, 5:19am UTC](https://community.auth0.com/t/two-apps-on-the-same-host-localhost/42504/5 "2020-05-08T05:19:52Z")

</div>

Hi Dan,

Thx for your reply.

App 1 is the customer facing app. They log in with email and password.  
App 2 is the internal backoffice system where admins will log in via google oauth.

So both apps have different user groups.

For testing it is a bit annoying if you can only be logged into one app at the same time. I think this has to do with the iframe method. You can click around but as soon as you reload the app you’re logged out if you just logged in to the other.

For now we came up with the solution to use local storage as the cache location for one of those apps.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 8, 2020, 10:06pm UTC](https://community.auth0.com/t/two-apps-on-the-same-host-localhost/42504/6 "2020-05-08T22:06:59Z")

</div>

@vui,

Ah I see. It is a problem with the session that is set. I don’t see a way around this besides using a seperate browser or incognito/private sessions.

---

<div class="post-metadata">

**Author:** ![vui](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vui/32/21110_2.png) [@vui](https://community.auth0.com/u/vui)\
**Post date:** [May 9, 2020, 4:33am UTC](https://community.auth0.com/t/two-apps-on-the-same-host-localhost/42504/7 "2020-05-09T04:33:54Z")

</div>

Okay, thanks for clarification!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 11, 2020, 5:37pm UTC](https://community.auth0.com/t/two-apps-on-the-same-host-localhost/42504/8 "2020-05-11T17:37:02Z")

</div>

No problem, let us know if you run into anything else!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 26, 2020, 5:44pm UTC](https://community.auth0.com/t/two-apps-on-the-same-host-localhost/42504/9 "2020-05-26T17:44:59Z")

</div>

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