> For the complete documentation index, see [llms.txt](https://docs.defi.app/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defi.app/knowledge-base/wallets/wallet-security.md).

# 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
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 dynamically by asking a question.

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

```
GET https://docs.defi.app/knowledge-base/wallets/wallet-security.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
