# Wallet Security

**Defi App** provides the option to set up 2FA as a security measure for your wallet. Follow these steps to set up 2FA with an authenticator app:

1. Click on the settings icon (<img src="/files/LtHCNcgOp5aaVFtT0Rz9" alt="" data-size="line">) in the top-right corner of the app. ​
2. Select "**Settings"** from the dropdown menu, then navigate to **Security** in the left sidebar.
3. Click the "**Set up now" button** in the 2FA section to begin the setup process.<br>

   <figure><img src="/files/U4wp6kUt4SV4B2P6wtkU" alt="" width="563"><figcaption></figcaption></figure>
4. Choose how to connect your authenticator app:
   * **QR code** (<img src="/files/LAbNWTEMVkhYmDt2H2hF" alt="" data-size="line">): Open your authenticator app and scan the QR code displayed in Defi App to link your account.
   * **Secret key**: Click "**Show secret"** to reveal the 32-character key. Copy and paste this key into your authenticator app to link your account.
5. Your authenticator app will generate six-digit authentication codes that refresh every 30 seconds. Enter the current code to verify and complete the setup.<br>

   <figure><img src="/files/gJ2b8MiFlef5NXM1bn2x" alt="" width="563"><figcaption></figcaption></figure>
6. After successfully setting up 2FA, you will receive backup codes. Save these codes in a secure location in case you lose access to your authenticator app.

<figure><img src="/files/qbYuK70hsXx2e8kU8at1" alt="" width="354"><figcaption></figcaption></figure>


---

# 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://docs.defi.app/knowledge-base/wallets/wallet-security.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.
