> For the complete documentation index, see [llms.txt](https://docs.inspector.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inspector.dev/security-and-access/two-factor-authentication.md).

# Two-factor authentication

Enable multi-factor authentication (MFA) to keep your Inspector account secure.

### Overview

Two-factor authentication (2FA) provides better safety for your account and prevents unauthorized access to your data. MFA strengthens security by requiring two or more methods *(i.e. authentication factors)* to verify your identity.

Inspector allows users logging in with an email address and password to set 2FA as a requirement for logging into the user account.

### Authentication provider

Inspector supports login with a unique *time-based one-time password (TOTP)* that is generated for your user account by using the Google Authenticator mobile app.

You have to download the app on your smartphone before proceed.

### Enable 2FA

You can enable 2FA for your user account under your user account menu.

<figure><img src="https://2873457055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ51SrLj6qvIRejC1XD%2Fuploads%2FRv4mmyMS8ohuDCyeoRaL%2Fmfa.png?alt=media&amp;token=5feea782-2b91-4f62-9915-b58f5b3ebb45" alt=""><figcaption><p>User menu to open MFA configuration page.</p></figcaption></figure>

Clicking the **Enable** button you will be redirected to the activaton screen.

<figure><img src="https://2873457055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ51SrLj6qvIRejC1XD%2Fuploads%2FM3WHwEaU6Tm1UyavDF6D%2Fmfa-qrcode.png?alt=media&amp;token=77f4f250-01e8-49bd-99ab-77b732280585" alt=""><figcaption><p>Screen with QR code</p></figcaption></figure>

Scan the QR Code with the Google Authenticator app. If the new Inspector entry appears in your smartphone you can confirm the contol checkbox and click **Next**.

### Log-in with Two-factor authentication

Once you've enabled 2FA in your Inspector user account, the next time you login, you'll be prompted to enter your two-factor authentication (2FA) code.

* Use the **OTP code** generated by your Google Authenticator app to login to your Inspector account.

### Recovery

You must contact our [support team](mailto:support@inspector.dev) to regain access to your account in the event that you lose the device that generates your authentication codes.

### Disable 2FA

{% hint style="warning" %}
We strongly recommend that you do not disable MFA to avoid unauthorized access to your user account.
{% endhint %}

{% hint style="info" %}
**Effects of disabling 2FA:**

* Any devices setup with the QR code for your account will no longer be able to produce valid OTP tokens.
  {% endhint %}

You have to enter your current password to disable two-factor authentication.

<figure><img src="https://2873457055-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ51SrLj6qvIRejC1XD%2Fuploads%2FzriwYVsCI4UtPT5TzPFW%2Fmfa-disable.png?alt=media&amp;token=d8937ec9-e6e0-4105-8ae0-9e4edfd96178" alt=""><figcaption><p>2FA disable screen.</p></figcaption></figure>

Type your password and click **Disable**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.inspector.dev/security-and-access/two-factor-authentication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
