> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How Does the Login Process Work When Switching Between Live and Test Workspaces?

> Understand the login and two-factor authentication flow when switching between live and test workspaces in the MoEngage dashboard environment.

Understanding the login process when switching between live and test workspace, especially with two-factor authentication (2FA) and the login hierarchy, is essential for smooth navigation across different environments.

## Instructions

> [!TIP]
>
> * Access to both live and test databases.
> * Confirm the login hierarchy: SSO login > Google sign-in > Simple login.
> * Familiarity with enabling 2FA for the respective workspaces.
> * Check if 2FA is enabled for the live database.
> * Check if 2FA is not enabled for the test database.

Perform the following steps:

1. **Switching from Live to Test Workspace:**
   * Log in to the live workspace using the appropriate credentials (for example, email, password, and Google Authenticator).
   * Ensure the login process does not prompt for re-login.
   * Switch to the test workspace without logging out.
   * Verify if the dashboard user can switch to the test workspace without re-logging.
2. **Switching from Test to Live Workspace:**
   * Log in to the test workspace using the designated login method (for example, email and password).
   * Switch to the live workspace without logging out.
   * Check if the login process prompts for re-login.
   * Verify if the dashboard user is required to provide credentials (for example, email, password, and Google Authenticator) when switching from test to live.

The hierarchy to remember is SSO login > Google sign-in > Simple login.

> [!NOTE]
>
> **Scenario**
>
> * The live workspace uses Google Authenticator.
> * The test workspace uses email and password.
>
> **Behavior**
>
> * Switching from Live to Test: The user can switch without logging out because a Google sign-in is more important than a simple login.
> * Switching from Test to Live: Due to the hierarchy (Google sign-in > Simple login), the user will be logged out and prompted to re-login.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.