# 2FA

{% embed url="<https://www.youtube.com/watch?v=XdOLal39cAA>" %}

**Two-factor-Authentication** or **2FA** is an additional safety feature used to maximise an account's security. While 2FA is enabled on your account, actions, such as logging in, placing a withdrawal and changing account password will require a 6-digit time code which is generated via your 2FA mobile app.

We strongly recommend having 2FA enabled on your account **at all times** as this is one of the best ways to secure your account. The setup process is quick and simple:

* Navigate to the [Settings](https://margex.com/app/settings) page of your account by clicking on the profile icon and then on the Settings button:

<figure><img src="/files/jROTB2daBqqAXsF4z7Xt" alt=""><figcaption></figcaption></figure>

* Click on the Google Authentication setting button:

<figure><img src="/files/oQqXSt4ub77Dl88RpIzH" alt=""><figcaption></figcaption></figure>

* The 2FA page will now pop up:

<figure><img src="/files/MYxKIGNjn80tNIKBT5yu" alt=""><figcaption></figcaption></figure>

* Download the Google Authenticator app for your device (via the App Store or Play Store)
* Copy and **save your secret key** in a secure place
* Paste the secret key in your Google authenticator app
* Enter the 6-digit time code generated in your authenticator app and click "CONTINUE"

{% hint style="warning" %}
The secret key can be used to restore your Google Authenticator time codes should you lose access to your mobile device. When enabling 2FA, make sure to save the latest 32-digit secret key in a secure location.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.margex.com/help-center/account-and-security/security/2fa.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
