> For the complete documentation index, see [llms.txt](https://earn-docs.affinedefi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://earn-docs.affinedefi.com/getting-started/connect-via-magic.md).

# Connect via Magic

*In this article, we will focus on how to connect to Affine **Mainnet Beta App** using Magic Link & Magic Wallet. After successfully completing these steps, you will be able to interact with **Affine Mainnet Beta App,** buy tokens (USDC and MATIC using Coinbase pay), and buy or sell baskets (USDC Earn and Affine Large).*&#x20;

You can skip to [Getting Started: Using the App](/getting-started/using-the-app.md) if you have already connected to the Affine Mainnet Beta Ap&#x70;*.*&#x20;

### What are Magic Links?

Magic Links are a form of password-less login. Instead of entering your credentials (username & password), you are sent a unique token embedded URL to your email address. And you can click on that link to securely log in to your account. You can learn more here: &#x20;

### What are Magic Wallets?&#x20;

Magic provides web3 wallet management (auth & key management) through its Magic Links. Unlike MetaMask and other wallet services, you don't have to protect and manage your private keys with Magic Wallet actively. Magic automatically maintains it in the backend. And you can have the whole wallet experience (send and receive crypto, connect and interact with web3 dApps, etc.) without actively managing the wallet.

### Requirements

You need an active email address to use Magic links to connect with **Affine Mainnet Beta App**.

### How to connect using email (Magic Link)&#x20;

**Step 1:** Navigate to [https://app.affinedefi.com/connect](https://app.affinedefi.com). You will see the following page:

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

**Step 2:** Click on **"Connect with Email,"** and a new window should appear. Type in your email address in the box and press "**Connect with Magic Link."**

**Step 3:** After this, you will be taken back to a new page. **Do not close the window**. Log in to your email on a different window.&#x20;

<figure><img src="/files/XqecfPEqrdWzw0LODjwz" alt=""><figcaption><p>Enter your email to log in using Magic</p></figcaption></figure>

**Step 4:** Open the email and click on **"Log in to Affine."**

<figure><img src="/files/jIdP5e05uo34qKZN5fE9" alt=""><figcaption><p><strong>Click on "log in to Affine" to log in to Affine App</strong></p></figcaption></figure>

**Step 5:** Go back to the previous window, and you will be logged into your account on **Affine Testnet App.**&#x20;

<figure><img src="/files/1ZFGlV49QEC6322UA27f" alt=""><figcaption><p><strong>Affine App homepage</strong></p></figcaption></figure>

**Congratulations!** You have successfully logged into the **Affine Testnet App**! You are now ready to experience the smoothest DeFi experience available in the market! Try investing in our diversified asset baskets with just a few clicks!
