> 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="broken://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="https://2018036541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAbXi00DD79pSYZGt3l5a%2Fuploads%2FXWr8wv07fyxIkoTM8ToZ%2Fimage.png?alt=media&amp;token=4087e87b-228f-456c-a1f0-a34e002fd4d7" alt="" width="563"><figcaption></figcaption></figure>
4. Choose how to connect your authenticator app:
   * **QR code** (<img src="https://2018036541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAbXi00DD79pSYZGt3l5a%2Fuploads%2FSS5L2ZUihHVvXJp2Kbtx%2Fimage.png?alt=media&amp;token=842ed902-ec14-49ae-aa6b-d11c284363a1" 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="https://2018036541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAbXi00DD79pSYZGt3l5a%2Fuploads%2FVPPLSXe5djPlvEm28TzM%2Fimage.png?alt=media&amp;token=83f02cae-7b88-4038-8de1-a9cc23fe3d93" 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="https://2018036541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAbXi00DD79pSYZGt3l5a%2Fuploads%2FEZuyUbDFPRtpYX19btmt%2Fimage.png?alt=media&amp;token=0c73778a-aea7-45cd-a097-68ff98381358" 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 by asking a question.

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

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