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

# Managing your account security

> Learn how to manage your sign-in methods, set up multi-factor authentication, and review the browsers signed in to your Dub account

The **Security** tab in your account settings is where you control how you sign in to Dub and where your account is signed in. From there, you can:

* [Manage your sign-in methods](#sign-in-methods), such as your password, Google, and GitHub.
* [Set up multi-factor authentication](#multi-factor-authentication) to require a code from an authenticator app when you sign in.
* [Review your active sessions](#active-sessions) and sign out of browsers you no longer use.

To open it, navigate to your [account settings](https://app.dub.co/account/settings) on Dub and select the **Security** tab in the sidebar.

![Security tab in your Dub account settings](https://mintcdn.com/dub/-IDGPxo__f63ojN_/images/account-security.png?fit=max\&auto=format\&n=-IDGPxo__f63ojN_\&q=85\&s=d8aacf5e55f8043bb07933ff78b04eff)

## Sign-in methods

The **Sign-in methods** card lists the ways you can sign in to your Dub account, and whether each one is **Connected** or **Not connected**.

![Sign-in methods card in the Security tab of your Dub account settings](https://mintcdn.com/dub/-IDGPxo__f63ojN_/images/account-security-section-signin.png?fit=max\&auto=format\&n=-IDGPxo__f63ojN_\&q=85\&s=d4f8727f09422c56763577ff73d5e19c)

### Connecting Google or GitHub

To add Google or GitHub as a sign-in method, click **Connect** next to it and sign in with that provider.

The Google or GitHub account needs to use the same email address as your Dub account, and that email needs to be verified with the provider. An account that's already connected to another Dub user can't be connected.

> [!NOTE]
>
> If your organization requires [SAML SSO](https://dub.co/help/article/okta-saml.md), you can't
> connect Google or GitHub.

### Disconnecting Google or GitHub

To remove Google or GitHub as a sign-in method:

1. Click **Disconnect** next to it.
2. Confirm by clicking **Disconnect** in the prompt.

You won't be able to sign in with that provider until you connect it again. You can't disconnect your only sign-in method.

Other sign-in methods, such as your password or SAML, are listed when they're in use, but they can't be disconnected.

### Setting or changing your password

Use the **Password** card, below your sign-in methods:

![Password card in the Security tab of your Dub account settings](https://mintcdn.com/dub/-IDGPxo__f63ojN_/images/account-security-section-password.png?fit=max\&auto=format\&n=-IDGPxo__f63ojN_\&q=85\&s=e9ff46fdcd39ead685fefc779439b037)

* **If you don't have a password yet**, click **Create account password**. We'll email you instructions to set one.
* **If you already have a password**, enter your current password and a new password, then click **Update Password**.

> [!WARNING]
>
> When you change your password, you're signed out on all your other devices.
> The browser you're using stays signed in. If you set or reset your password
> from an emailed link, you're signed out on all devices, including this one.

## Multi-factor authentication

Multi-factor authentication (MFA) adds a second step when you sign in to Dub. After you sign in as usual, Dub asks for a 6-digit code from an authenticator app on your phone, so someone who only has your password or access to your email can't get into your account.

You'll need an authenticator app, such as 1Password, Google Authenticator, or Authy.

### Enabling MFA

1. In the **Multi-Factor Authentication** card, click **Enable MFA**.

![Multi-Factor Authentication card with the Enable MFA button](https://mintcdn.com/dub/tvWnQgU21MhuFiXt/images/account-security-section-mfa-off.png?fit=max\&auto=format\&n=tvWnQgU21MhuFiXt\&q=85\&s=ea8b72098776fbeacc3f1ce2f7bc5aca)

2. If your account has a password, enter your current password and click **Continue**.
3. Scan the QR code with your authenticator app. If you can't scan it, enter the key shown below the QR code instead.
4. Enter the 6-digit code from your authenticator app and click **Enable MFA**.
5. Save your backup codes, then click **Done**.

The card now shows an **Active** badge.

![Multi-Factor Authentication card showing the Active badge](https://mintcdn.com/dub/tvWnQgU21MhuFiXt/images/account-security-section-mfa-on.png?fit=max\&auto=format\&n=tvWnQgU21MhuFiXt\&q=85\&s=63f6795ed39c84c6ab9c732f2489640a)

> [!WARNING]
>
> Your backup codes are only shown once. Use **Copy**, **Download**, or
> **Print** to save them somewhere safe before you close the window.

When you enable MFA, you're signed out on all your other devices. The browser you're using stays signed in.

### Signing in with MFA

Once MFA is enabled, Dub asks for a code every time you sign in with your password, a login link, Google, or GitHub.

1. Sign in as you normally would.
2. Enter the 6-digit code from your authenticator app.

If you don't have your authenticator app with you, click **Use a backup code** and enter one of your backup codes instead. Each backup code only works once.

### Generating new backup codes

If you've used most of your backup codes, or you think someone else has seen them, you can replace them:

1. In the **Multi-Factor Authentication** card, click **New backup codes**.
2. If your account has a password, enter your current password. Then click **Continue**.
3. Save your new backup codes, then click **Done**.

Your old backup codes stop working as soon as the new ones are generated.

### Disabling MFA

1. In the **Multi-Factor Authentication** card, click **Disable MFA**.
2. If your account has a password, enter your current password. Then click **Continue**.

The card shows an **Off** badge, and you'll no longer be asked for a code when you sign in.

### What if I lose access to my authenticator app?

Sign in with one of your backup codes, then disable MFA and enable it again to connect your new device.

If you don't have your backup codes either, [contact our support team](https://dub.co/contact/support). After confirming it's you, we can reset MFA on your account. A reset turns off MFA and signs you out on every device, and you can enable MFA again from the **Security** tab.

### Checking which teammates have MFA enabled

The **Members** page in your workspace settings has an **Enabled MFA** column, which shows whether each teammate has turned on MFA for their Dub account.

![Enabled MFA column on the Members page in workspace settings](https://mintcdn.com/dub/tvWnQgU21MhuFiXt/images/account-security-mfa-members.png?fit=max\&auto=format\&n=tvWnQgU21MhuFiXt\&q=85\&s=09cd56f54afb822cab37203d7e3d1a6b)

> [!TIP]
>
> MFA is set per account, not per workspace. Each teammate needs to enable it
> from their own account settings.

## Active sessions

The **Active sessions** card shows every browser that is currently signed in to your Dub account. You can use it to check where your account is in use and to sign out of any session remotely, for example if you signed in on a shared computer or no longer have access to a device.

![Active sessions card in the Security tab of your Dub account settings](https://mintcdn.com/dub/-IDGPxo__f63ojN_/images/account-security-section-activesessions.png?fit=max\&auto=format\&n=-IDGPxo__f63ojN_\&q=85\&s=ee0f5b59b7dad0efd4ea66439d89842b)

Each session in the list shows:

* **Browser and operating system**: for example, Chrome on macOS or Safari on iOS.
* **IP address**: the IP address the session signed in from.
* **Sign-in time**: how long ago the session signed in.

The session you're currently using is marked with a **This device** badge.

### Signing out of a single session

To sign out of a specific browser, click **Sign out** next to that session. That browser will need to sign in again to access your Dub account.

### Signing out of all other sessions

To sign out everywhere except the browser you're currently using:

1. Click **Sign out all other sessions** in the top right of the **Active sessions** card.
2. Confirm the action in the prompt.

Your current session (the one marked **This device**) stays signed in.

> [!TIP]
>
> If you see a session you don't recognize, sign out of it and then update your
> password from the **Password** card in the same **Security** tab.

### What about API keys and connected apps?

Signing out of a session only affects browsers signed in to your Dub account. It doesn't revoke your API keys or disconnect any connected apps, so those will keep working.

If you have any questions or need further assistance, please [contact our support team](https://dub.co/contact/support).


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