Cannot Maintain Multiple User Sessions in the Same Browser

Overview

This article explains how to work around an issue with using multiple applications using the React SDK in a single tenant. When the applications use different connections, like an Enterprise connection and a Database connection, users are logged out of one application when they log into another in the same browser.

Applies To
  • Multiple Sessions 
  • React SDK
  • Multiple Connections
Cause

If two React applications are using the same Auth0 domain, two separate sessions for two different user accounts cannot be maintained in the browser at the same time.

Solution

A possible workaround is to use a custom domain for one application and the Auth0 canonical domain for the other application. The different domains allow for the two sessions to exist simultaneously.

Recommended content

No recommended content found...