Two apps on the same host (localhost)


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?


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,

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.


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.

1 Like

Okay, thanks for clarification!

1 Like

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

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